I have to install npm on a computer that doesn't have root privileges, I will have a number of errors due to missing dependencies. I attach the screen. Any idea? Thanks.



From isaacs, one of the contributors of node.js:
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install
curl https://www.npmjs.org/install.sh | sh
For more informations: https://gist.github.com/isaacs/579814
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With