How to shrinkwrap devDependencies, but not install them unless necessary?

前端 未结 5 1676
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-23 14:11

I have a bunch of devDependencies needed in order to run test suite and have production dependencies locked down with npm shrinkwrap. The problem i

5条回答
  •  时光说笑
    2020-12-23 14:23

    This is fixed in npm 3.10.8; npm install --production shouldn't install dev deps in a shrinkwrap created by npm shrinkwrap --dev: https://github.com/npm/npm/releases/tag/v3.10.8

提交回复
热议问题