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

后端 未结 3 1144
深忆病人
深忆病人 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:11

    Use "*" as your version in your package.json file. For example:

    "dependencies": {
     "my-awesome-repo": "*"
    }
    

    Upon npm install this will automatically install the latest version for "my-awesome-repo" that is availabile on npm.

提交回复
热议问题