[QUESTION] What's the correct way of using npm-shrinkwrap for dependencies? #1005
Labels
Awaiting Information
further information is requested
Release 6.x
work is associated with a specific npm 6 release
What / Why
I'm not sure if this is a feature or a bug: I've been using npm-shrinkwrap files in a couple of projects to pin down versions. That works fine on the highest level. I use
npm shrinkwrap
to generate the file (keeping both dependencies and dev-dependencies in the same file). I test the module on CI. It works. When I install my application I usenpm install --production
. That also work fine, only dependencies gets installed.However, if my dependencies also use a shrink-wrap file and I run
npm install --production
on the top level, my dependencies dev-dependencies gets installed. Is that how it should work?In my case having dependencies that use dependencies that use dependencies that use shrink-wrap files, has made me production install many extra mb of prettier and other test dependencies.
I tested with npm version 6.14.2
The text was updated successfully, but these errors were encountered: