I'm submitting a ... (check one with "x")
Current behavior:
Trying to build last version of dashboard with latest version of NPM and NODE.
_My solution was to change version of node-sass with this command:
npm i [email protected]_
The build error _before_ change node-sass version:
Date: 2018-04-19T16:32:04.365Z
Hash: 8d46ac38519c84d2f18f
Time: 18195ms
chunk {charts.module} charts.module.chunk.js, charts.module.chunk.js.map () 2.55 MB [rendered]
chunk {common} common.chunk.js, common.chunk.js.map (common) 33.3 kB [rendered]
chunk {components.module} components.module.chunk.js, components.module.chunk.js.map () 171 kB [rendered]
chunk {editors.module} editors.module.chunk.js, editors.module.chunk.js.map () 592 kB [rendered]
chunk {forms.module} forms.module.chunk.js, forms.module.chunk.js.map () 37.7 kB [rendered]
chunk {inline} inline.bundle.js, inline.bundle.js.map (inline) 5.83 kB [entry] [rendered]
chunk {main} main.bundle.js, main.bundle.js.map (main) 176 kB [initial] [rendered]
chunk {maps.module} maps.module.chunk.js, maps.module.chunk.js.map () 674 kB [rendered]
chunk {pages.module} pages.module.chunk.js, pages.module.chunk.js.map () 275 kB [rendered]
chunk {polyfills} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 603 kB [initial] [rendered]
chunk {scripts} scripts.bundle.js, scripts.bundle.js.map (scripts) 1.36 MB [initial] [rendered]
chunk {styles} styles.bundle.js, styles.bundle.js.map (styles) 355 kB [initial] [rendered]
chunk {tables.module} tables.module.chunk.js, tables.module.chunk.js.map () 979 kB [rendered]
chunk {ui-features.module} ui-features.module.chunk.js, ui-features.module.chunk.js.map () 218 kB [rendered]
chunk {vendor} vendor.bundle.js, vendor.bundle.js.map (vendor) 4.48 MB [initial] [rendered]
ERROR in ./node_modules/raw-loader!./node_modules/postcss-loader/lib??embedded!./node_modules/sass-loader/lib/loader.js??ref--8-3!./src/app/@theme/styles/styles.scss
Module build failed:
@mixin hover-border($color) {
^
Mixins may not be defined within control directives or other mixins.
in /home/daniel/Angular/appCambeWeb/node_modules/@nebular/theme/components/checkbox/_checkbox.component.theme.scss (line 8, column 10)
Expected behavior:
Should build without problems.
Steps to reproduce:
Related code:
Don't have. Its dashboard origial code.
npm, node, OS, Browser
Browser: Chrome
OS: Ubuntu
node version: 9.8.0
npm version: 5.8.9
Angular CLI: 1.7.4
Node: 9.8.0
OS: linux x64
Angular: 5.2.10
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router
@angular/cli: 1.7.4
@angular-devkit/build-optimizer: 0.3.2
@angular-devkit/core: 0.3.2
@angular-devkit/schematics: 0.3.2
@ngtools/json-schema: 1.2.0
@ngtools/webpack: 1.10.2
@schematics/angular: 0.3.2
@schematics/package-update: 0.3.2
typescript: 2.5.3
webpack: 3.11.0
Angular, Nebular
PACKAGE.JSON
{
"name": "ngx-admin",
"version": "2.1.0",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/akveo/ngx-admin.git"
},
"bugs": {
"url": "https://github.com/akveo/ngx-admin/issues"
},
"scripts": {
"ng": "ng",
"conventional-changelog": "conventional-changelog",
"start": "ng serve",
"build": "ng build",
"build:prod": "npm run build -- --prod --aot",
"test": "ng test -sr",
"test:coverage": "rimraf coverage && npm run test -- -cc",
"lint": "ng lint --type-check",
"lint:fix": "ng lint --fix",
"lint:styles": "stylelint ./src/**/*.scss",
"lint:ci": "npm run lint && npm run lint:styles",
"pree2e": "webdriver-manager update --standalone false --gecko false",
"e2e": "ng e2e",
"docs": "compodoc -p src/tsconfig.app.json -d docs",
"docs:serve": "compodoc -p src/tsconfig.app.json -d docs -s",
"prepush": "npm run lint:ci",
"release:changelog": "npm run conventional-changelog -- -p angular -i CHANGELOG.md -s"
},
"dependencies": {
"@agm/core": "1.0.0-beta.2",
"@angular/animations": "^5.2.10",
"@angular/common": "^5.2.10",
"@angular/compiler": "^5.2.10",
"@angular/core": "^5.2.10",
"@angular/forms": "^5.2.10",
"@angular/http": "^5.2.10",
"@angular/platform-browser": "^5.2.10",
"@angular/platform-browser-dynamic": "^5.2.10",
"@angular/router": "^5.2.10",
"@asymmetrik/ngx-leaflet": "3.0.1",
"@nebular/auth": "2.0.0-rc.6",
"@nebular/security": "2.0.0-rc.6",
"@nebular/theme": "2.0.0-rc.6",
"@ng-bootstrap/ng-bootstrap": "1.0.0",
"@swimlane/ngx-charts": "7.0.1",
"angular2-chartjs": "0.4.1",
"angular2-toaster": "4.0.1",
"bootstrap": "4.0.0",
"chart.js": "2.7.1",
"ckeditor": "4.7.3",
"classlist.js": "1.1.20150312",
"core-js": "2.5.1",
"echarts": "^4.0.4",
"font-awesome": "4.7.0",
"intl": "1.2.5",
"ionicons": "2.0.1",
"leaflet": "1.2.0",
"nebular-icons": "1.0.6",
"ng2-ckeditor": "1.1.13",
"ng2-smart-table": "1.2.2",
"ng2-tree": "2.0.0-rc.4",
"ngx-echarts": "2.0.1",
"node-sass": "^4.8.1",
"normalize.css": "6.0.0",
"pace-js": "1.0.2",
"roboto-fontface": "0.8.0",
"rxjs": "5.5.5",
"socicon": "3.0.5",
"tinymce": "4.5.7",
"typeface-exo": "0.0.22",
"web-animations-js": "2.2.5",
"zone.js": "0.8.18"
},
"devDependencies": {
"@angular/cli": "^1.7.4",
"@angular/compiler-cli": "^5.2.10",
"@angular/language-service": "^5.2.10",
"@compodoc/compodoc": "1.0.1",
"@types/d3-color": "1.0.5",
"@types/googlemaps": "3.30.4",
"@types/jasmine": "2.5.54",
"@types/jasminewd2": "2.0.3",
"@types/leaflet": "1.2.3",
"@types/node": "6.0.90",
"codelyzer": "4.0.2",
"conventional-changelog-cli": "1.3.4",
"husky": "0.13.3",
"jasmine-core": "2.6.4",
"jasmine-spec-reporter": "4.1.1",
"karma": "1.7.1",
"karma-chrome-launcher": "2.1.1",
"karma-cli": "1.0.1",
"karma-coverage-istanbul-reporter": "1.3.0",
"karma-jasmine": "1.1.0",
"karma-jasmine-html-reporter": "0.2.2",
"npm-run-all": "4.0.2",
"protractor": "5.1.2",
"rimraf": "2.6.1",
"stylelint": "7.13.0",
"ts-node": "3.2.2",
"tslint": "5.7.0",
"tslint-language-service": "0.9.6",
"typescript": "2.5.3"
}
}
You should install it with unsafe permission. It will do the trick
npm i --unsafe-perm [email protected]
@pankamilr ok, but remembering that the error occurred BEFORE changing the node-sass version. The problem is solved with or without _--unsafa-perm_.
fixed in 2.1.1!
You should install it with unsafe permission. It will do the trick
npm i --unsafe-perm [email protected]
Thanks Problem is solved with --unsafe-prem
Most helpful comment
You should install it with unsafe permission. It will do the trick
npm i --unsafe-perm [email protected]