npm - How to actually use package-lock.json for installing based on locked versions?

后端 未结 2 1917
灰色年华
灰色年华 2021-02-06 22:25

Just updated from npm 3 to 5, to use this feature.

Sorry, I must be missing something totally obvious, but how do make npm respect the pinned versions in packa

2条回答
  •  余生分开走
    2021-02-06 22:48

    You need to use the npm ci command to install from package-lock.json.

    See: https://blog.npmjs.org/post/171556855892/introducing-npm-ci-for-faster-more-reliable

提交回复
热议问题