Node install without npm only via . zip

Asked

Viewed 438 times

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 answer

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

Source: https://github.com/joyent/node/wiki/installation

Browser other questions tagged

You are not signed in. Login or sign up in order to post.