Search code examples
node.jsofflinenpm

How to install npm -g on offline server


I need to install a "global" npm applications on an offline server.

It is easy to install a normal application:

npm install

and then pack up the resulting files. Either manually or using npm pack.

However, how can I install global application (that has a install script of some sort) such as forever without Internet?

npm install -g forever

Solution

  • try npmbox, it is the new name of npmzip which will allow you to install offline npm packages by one file