BitShares Forum
Main => Technical Support => Topic started by: bitcoinerS on September 15, 2014, 09:03:21 pm
-
Having trouble installing npm on a new Ubuntu 14.10 beta machine
bitsharesx/programs/web_wallet $ npm install
/
> lineman-less@0.0.1 postinstall /home/bitcoiners/dev/projects/bitsharesx/programs/web_wallet/node_modules/lineman-less
> node script/postinstall.js
sh: 1: node: not found
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! lineman-less@0.0.1 postinstall: `node script/postinstall.js`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the lineman-less@0.0.1 postinstall script.
npm ERR! This is most likely a problem with the lineman-less package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node script/postinstall.js
npm ERR! You can get their info via:
npm ERR! npm owner ls lineman-less
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.16.0-14-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/bitcoiners/dev/projects/bitsharesx/programs/web_wallet
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/bitcoiners/dev/projects/bitsharesx/programs/web_wallet/npm-debug.log
npm ERR! not ok code 0
-
Having trouble installing npm on a new Ubuntu 14.10 beta machine
bitsharesx/programs/web_wallet $ npm install
/
> lineman-less@0.0.1 postinstall /home/bitcoiners/dev/projects/bitsharesx/programs/web_wallet/node_modules/lineman-less
> node script/postinstall.js
sh: 1: node: not found
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! lineman-less@0.0.1 postinstall: `node script/postinstall.js`
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the lineman-less@0.0.1 postinstall script.
npm ERR! This is most likely a problem with the lineman-less package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node script/postinstall.js
npm ERR! You can get their info via:
npm ERR! npm owner ls lineman-less
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.16.0-14-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/bitcoiners/dev/projects/bitsharesx/programs/web_wallet
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/bitcoiners/dev/projects/bitsharesx/programs/web_wallet/npm-debug.log
npm ERR! not ok code 0
Its a nodejs conflict rather than an npm issue. On Ubuntu you often have an older program called node, but nodejs also uses node as its executable so it ends up not working well.
Try uninstalling node with apt, then add the nodejs ppa and reinstall it with that. This tutorial worked for me iirc:
https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-an-ubuntu-14-04-server
-
node ppa is missing for 14.10..
tried uninstalling node, reinstalling nodejs.. nothing helped so far..
-
What helped me was:
sudo bash
cd /usr/bin
ln -s nodejs node
and then retry npm install
-
What helped me was:
sudo bash
cd /usr/bin
ln -s nodejs node
and then retry npm install
This worked! Thanks.
-
or:
apt-get install nodejs-legacy
that will do it for you
that's because there is another application named "node" and if you want to have "nodejs" provide "node" you need to link it or install "nodejs-legacy"
perhaps we should put that in the build documentation. I feel like it gets asked every few weeks.
-
or:
apt-get install nodejs-legacy
that will do it for you
that's because there is another application named "node" and if you want to have "nodejs" provide "node" you need to link it or install "nodejs-legacy"
perhaps we should put that in the build documentation. I feel like it gets asked every few weeks.
+5% you mean the one on github?