petethepig / devtools-terminal

Terminal in Chrome Devtools
http://blog.dfilimonov.com/2013/09/12/devtools-terminal.html
MIT License
1.31k stars 89 forks source link

npm ERR! weird error 1 #52

Closed AndrieVorster closed 9 years ago

AndrieVorster commented 10 years ago

Using Linuxmint I get:

/bin/sh: 1: node: not found gyp: Call to 'node -e "require('nan')"' returned exit status 127. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:431:16) gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12) gyp ERR! System Linux 3.13.0-24-generic gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild" gyp ERR! cwd /usr/local/lib/node_modules/devtools-terminal/node_modules/pty.js gyp ERR! node -v v0.10.25 gyp ERR! node-gyp -v v0.10.10 gyp ERR! not ok npm WARN This failure might be due to the use of legacy binary "node" npm WARN For further explanations, please read /usr/share/doc/nodejs/README.Debian

npm ERR! weird error 1

How can I fix this?

dbarnett commented 9 years ago

See http://stackoverflow.com/a/21171188/307705. Works after sudo apt-get install nodejs-legacy.

Is that a problem that can be fixed in the devtools-terminal project, or is the blame all on the Linux distro?