2
I need to install a nodejs module on a server and it has no internet access. if I lower it on github, how to install it on the server?
I don’t want to use npm install to download directly from the internet
2
I need to install a nodejs module on a server and it has no internet access. if I lower it on github, how to install it on the server?
I don’t want to use npm install to download directly from the internet
1
In the folder you downloaded Node.js run:
./configure --prefix=/opt/node && make && sudo make install
To facilitate Node commands add Node path in one of these files:
~/.profile
or ~/.bash_profile
or ~/.bashrc
or ~/.zshenv
Look for one of them edit with sudo nano
or sudo vim
and add the line:
export PATH=$PATH:/opt/node/bin
Browser other questions tagged node.js
You are not signed in. Login or sign up in order to post.
managed to solve?
– Julio Henrique