Make `npm install --save` add a strict version to package.json

前端 未结 3 1487
走了就别回头了
走了就别回头了 2021-01-30 05:06

When you run npm install --save somepackage, it usually adds something like this into package.json:

\"dependencies\": {
    \"somepackage\": \"^2.1.         


        
3条回答
  •  故里飘歌
    2021-01-30 05:38

    Run:

    npm install --save --save-exact my-module@my-specific-version
    

    Adding an answer to make this advice easier to see.

提交回复
热议问题