node.js - Installing NW.js -
i'm having trouble installing nw.js. when run npm install nw
, these error messages:
> nw@0.12.3 postinstall /root/node_modules/nw > node scripts/install.js sh: 1: node: not found npm warn failure might due use of legacy binary "node" npm warn further explanations, please read /usr/share/doc/nodejs/readme.debian npm err! nw@0.12.3 postinstall: `node scripts/install.js` npm err! exit status 127 npm err! npm err! failed @ nw@0.12.3 postinstall script. npm err! problem nw package, npm err! not npm itself. npm err! tell author fails on system: npm err! node scripts/install.js npm err! can info via: npm err! npm owner ls nw npm err! there additional logging output above. npm err! system linux 4.3.0-kali1-amd64 npm err! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "nw" npm err! cwd /root npm err! node -v v4.2.6 npm err! npm -v 1.4.21 npm err! code elifecycle npm err! npm err! additional logging details can found in: npm err! /root/npm-debug.log npm err! not ok code 0
i'm pretty sure problem has first section talks node
being installed. know there's issue debian node
package taken, use nodejs
instead. don't know enough fix it, i've tried running export node=nodejs
, adding ~/.bashrc
. have ideas can do? i've had problem other npm packages well.
- the nodejs executable called node, not nodejs. so, remove line added. (
export node=nodejs
) - if still won't work: try reinstall node via package management (apt-get/yum/dnf) or try reinstall executable , setup path website (https://nodejs.org/en/download/).
Comments
Post a Comment