How to install npm -g on offline server

后端 未结 10 1261
谎友^
谎友^ 2020-11-30 03:41

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

It is easy to install a normal application:

npm install

and t

10条回答
  •  北海茫月
    2020-11-30 04:31

    I created offline-npm for getting all the dependencies installed in a clean way. For modules without the use of node-gyp everything should work as described.

    If you require node-gyp (which is usually installed online) consider copying ~/.node-gyp to that offline machine.

提交回复
热议问题