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

NPM error with installing node-sass #13

Closed
akhar opened this issue Dec 12, 2014 · 7 comments
Closed

NPM error with installing node-sass #13

akhar opened this issue Dec 12, 2014 · 7 comments

Comments

@akhar
Copy link

akhar commented Dec 12, 2014

Ember-CLI 0.1.4, fresh install.
I tried ''npm install --save-dev ember-paper" and got this:

installing node-sass
\
> [email protected] install /home/akha/mbr/node_modules/ember-paper/node_modules/node-sass
> node scripts/install.js

Binary downloaded and installed at /home/akha/mbr/node_modules/ember-paper/node_modules/node-sass/vendor/linux-x64/binding.node

> [email protected] postinstall /home/akha/mbr/node_modules/ember-paper/node_modules/node-sass
> node scripts/build.js

`linux-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.<anonymous> (/home/akha/mbr/node_modules/ember-paper/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! Linux 3.16.0-28-generic
npm ERR! argv "/home/akha/.nvm/v0.11.14/bin/node" "/home/akha/.nvm/v0.11.14/bin/npm" "install" "node-sass"
npm ERR! node v0.11.14
npm ERR! npm  v2.0.0
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script.
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.
compiling CSS to /vendor with node-sass
./postinstall.sh: 13: ./postinstall.sh: ./node_modules/.bin/node-sass: not found

npm ERR! Linux 3.16.0-28-generic
npm ERR! argv "/home/akha/.nvm/v0.11.14/bin/node" "/home/akha/.nvm/v0.11.14/bin/npm" "install" "--save-dev" "ember-paper"
npm ERR! node v0.11.14
npm ERR! npm  v2.0.0
npm ERR! code ELIFECYCLE
npm ERR! [email protected] postinstall: `./postinstall.sh`
npm ERR! Exit status 127
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is most likely a problem with the ember-paper package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     ./postinstall.sh
npm ERR! You can get their info via:
npm ERR!     npm owner ls ember-paper
npm ERR! There is likely additional logging output above.
@miguelcobain
Copy link
Owner

Strange. I just ran:

ember new test-app
cd test-app/
npm install --save-dev ember-paper

Everything perfect. I can't reproduce the problem.
Node/npm version? OS?

@akhar
Copy link
Author

akhar commented Dec 12, 2014

Ubuntu 14.10 x64
NPM 2.0.0
node 0.11.14

I think it may be problem in my particular environment so I gonna to try to reproduce it on another computer with same dependencies.

@miguelcobain
Copy link
Owner

I'm also running a linux-x64.

This looks like a node-sass problem.
Please try:

ember new test-app
cd test-app/
npm install --save-dev node-sass

Does this work for you?

@akhar
Copy link
Author

akhar commented Dec 12, 2014

Oh, the same error has happened.

@miguelcobain
Copy link
Owner

Probably related: sass/node-sass#550

I'm using node v0.10.33.
Like stated here sass/node-sass#563 node-sass doesn't support most recent versions of node currently.

@akhar
Copy link
Author

akhar commented Dec 13, 2014

Yep, switching to 0.10.33 resolved problem.
Thanks!

@Rheaxu
Copy link

Rheaxu commented Feb 16, 2015

Got the same problem, and switching to 0.10.33 resolved it.

mike-north pushed a commit to mike-north/ember-paper that referenced this issue Apr 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants