How to install npm package while offline?

前端 未结 6 746
余生分开走
余生分开走 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:26

    Jan 2016 - check out Addy Osmani's recommendations for offline installation of npm packages

    May 2017 - as of npm 5, you can pass the --prefer-offline flag to npm install

    yarn does this out of the box.

提交回复
热议问题