How to install npm -g on offline server

后端 未结 10 1282
谎友^
谎友^ 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:45

    List the dependencies in bundledDependencies in your package.json, and then run npm pack to create a tarball. Get that over to the other machine, and either npm install , or just crack it open manually.

    https://github.com/npm/npm/issues/1349

提交回复
热议问题