How to install npm package while offline?

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

    You can find the npm install command documentation here: https://docs.npmjs.com/cli/install

    I am not quite sure and unfortunately, I do not have the chance to test it myself right now, but I would try to either unzip the folder and remove the dot, like that: npm install /angular-cli-master (= installing a folder not a zip file) or just add the zip file ending like that: npm install ./angular-cli-master.tgz
    (= installing a zip-file not a folder, file ending may be .zip or something else, though)

提交回复
热议问题