How to npm install and force latest version (permanently)?

后端 未结 3 1137
深忆病人
深忆病人 2021-02-15 15:03

I am deploying a private npm module for internal use at our company. Since the module is handled internally, we can trust version bumps etc.

How can I install the module

3条回答
  •  甜味超标
    2021-02-15 15:27

    One way is to run this before each install.

    npm i -g npm-check-updates
    npm-check-updates -u
    npm install
    

    On npm < 3.11:

    "dependencies": {
     "express": "~3.2.0",
     "mongodb": "~1.2.14",
     "underscore": "~1.4.4",
     "rjs": "~2.10.0",
     "jade": "~0.29.0",
     "async": "~0.2.7"
    }
    

提交回复
热议问题