Error ionic setup sass with last version of nodejs 4.1.1
I've create a blank application with a clean and last version of nodejs.
~/p/e/helloIonic ionic setup sass npmnpm WARN package.json [email protected] No README data npm WARN package.json [email protected] No license field.
[email protected] install ~/projects/experimentos/helloIonic/node_modules/node-sass node scripts/install.js
[email protected] postinstall ~/projects/experimentos/helloIonic/node_modules/node-sass node scripts/build.js
~/projects/experimentos/helloIonic/node_modules/node-sass/vendor/darwin-x64-46/binding.node exists.
testing binary.
Binary is fine; exiting.
Successful npm install Updated ~/projects/experimentos/helloIonic/www/index.html references to sass compiled css
Ionic project ready to use Sass!
- Customize the app using scss/ionic.app.scss
- Run ionic serve to start a local dev server and watch/compile Sass to CSS
~/projects/experimentos/helloIonic/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:22
throw new Error('libsass bindings not found. Try reinstalling node-sass?');
^
Error: libsass bindings not found. Try reinstalling node-sass?
at getBinding (~/projects/experimentos/helloIonic/node_modules/gulp-sass/node_modules/node-sass/lib/index.js:22:11)
at Object.
Error running gulp sass
Exception with (CLI v1.6.4)
Your system information:
Cordova CLI: 5.3.3 Gulp version: CLI version 3.9.0 Gulp local: Local version 3.9.0 Ionic Version: 1.1.0 Ionic CLI Version: 1.6.4 Ionic App Lib Version: 0.3.8 ios-deploy version: Not installed ios-sim version: Not installed OS: Mac OS X Yosemite Node Version: v4.1.1 Xcode version: Xcode 7.0 Build version 7A220
I fixed by changing in package.json:
from
"dependencies": {
"gulp-sass": "^1.3.3"
}
to
"dependencies": {
"gulp-sass": "2.1.0-beta"
}
and then running again ionic setup sass
Fixed mine too. +1 for that. @Ionic-Team: gulp-sass should get upgraded. 1.3.3 is kind of outdated
Fixing this tomorrow.