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 install failes with nodejs 0.10 and Ubuntu 13.04 #7

Closed
jwatte opened this issue Sep 5, 2013 · 3 comments
Closed

npm install failes with nodejs 0.10 and Ubuntu 13.04 #7

jwatte opened this issue Sep 5, 2013 · 3 comments

Comments

@jwatte
Copy link
Contributor

jwatte commented Sep 5, 2013

The name of the "node" executable has changed to "nodejs."
(npm even conveniently tells you that this is the problem -- still, the package is broken until it gets fixed)

jwatte@ubuntu:/usr/local/src/project$ npm install keygrip
npm http GET https://registry.npmjs.org/keygrip
npm http 304 https://registry.npmjs.org/keygrip

> keygrip@0.2.3 install /usr/local/src/matchmake/node_modules/keygrip
> node ./install.js

sh: 1: node: not found
npm ERR! error installing keygrip@0.2.3
npm WARN This failure might be due to the use of legacy binary "node" 
npm WARN For further explanations, please read
npm WARN /usr/share/doc/nodejs/README.Debian
npm WARN 

npm ERR! keygrip@0.2.3 install: `node ./install.js`
npm ERR! `sh "-c" "node ./install.js"` failed with 127
npm ERR! 
npm ERR! Failed at the keygrip@0.2.3 install script.
npm ERR! This is most likely a problem with the keygrip package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node ./install.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls keygrip
npm ERR! There is likely additional logging output above.
npm ERR! 
npm ERR! System Linux 3.8.0-29-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "keygrip"
npm ERR! cwd /usr/local/src/matchmake
npm ERR! node -v v0.6.19
npm ERR! npm -v 1.1.4
npm ERR! code ELIFECYCLE
npm ERR! message keygrip@0.2.3 install: `node ./install.js`
npm ERR! message `sh "-c" "node ./install.js"` failed with 127
npm ERR! errno {}
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /usr/local/src/matchmake/npm-debug.log
npm not ok
@jed
Copy link
Contributor

jed commented Sep 6, 2013

Closed by #9.

@codeonrails
Copy link

To solve this problem you need to install the package nodejs-legacy.

sudo apt-get install nodejs-legacy

@adeptofvoltron
Copy link

got same issue
when I install legacy version got info that nodejs in the newest version
ubuntu 14.04

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

4 participants