Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error on npm install grunt-sass --save-dev #881

Closed
phlorie opened this issue Feb 9, 2015 · 3 comments
Closed

Error on npm install grunt-sass --save-dev #881

phlorie opened this issue Feb 9, 2015 · 3 comments

Comments

@phlorie
Copy link

phlorie commented Feb 9, 2015

This is error on installing with Grunt:

node scripts/build.js

darwin-x64 exists; testing
module.js:355
Module._extensions[extension](this, filename);
^
Error: Module did not self-register.
at Error (native)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object. (/private/var/www/js-client-ui/node_modules/grunt-sass/node_modules/node-sass/lib/index.js:181:15)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
npm ERR! Darwin 13.4.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "grunt-sass" "--save-dev"
npm ERR! node v0.12.0
npm ERR! npm v2.5.0
npm ERR! code ELIFECYCLE

npm ERR! node-sass@1.2.3 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@1.2.3 postinstall script 'node scripts/build.js'.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node scripts/build.js
npm ERR! You can get their info via:
npm ERR! npm owner ls node-sass
npm ERR! There is likely additional logging output above.

@xzyfer
Copy link
Contributor

xzyfer commented Feb 9, 2015

Hi @phlorie

This is a known issue with node-sass sass/node-sass#653. Currently node-sass@2.0.0-beta and below are not compatible with node 0.12.x or io.js.

Node 0.12.x and io.js support will come in node-sass@2.0.0 stable.

@phlorie
Copy link
Author

phlorie commented Feb 9, 2015

Good to know.

Is there currently a version that can be used with grunt ? Or an alternative ?
Any documentation I found until now uses the same command.

Thank you

@xzyfer
Copy link
Contributor

xzyfer commented Feb 9, 2015

If you down grade to node 0.10.x or use nvm to manage multiple node versions you you should be able to use grunt-sass. Otherwise follow sass/node-sass#602 for when the 2.0.0 stable is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants