How to install npm package while offline?

前端 未结 6 741
余生分开走
余生分开走 2020-12-13 03:52

I\'m working on an offline network and want to install angular-cli using npm. I have a zip file of angular-cli and using the latest node and npm version. I\'m using the comm

6条回答
  •  南方客
    南方客 (楼主)
    2020-12-13 04:39

    the short answer, you can't. Most NPM packages such as @angular/cli need other dependencies and those need child dependencies which get installed when you run npm install

    You can, however, install the cli when on the network and use it when offline.

提交回复
热议问题