The npm community forum has been discontinued.
To discuss usage of npm, visit the GitHub Support Community.
npm shrinkwrap issue with peer and dev dependencies
I have a CLI package which is
npm shrinkwraped, this has a
foo package as peerDependency. For unit testing reason,
foo also is a devDependecy.
In this case, when I run
foo is locked a specific version and written into
npm-shrinkwrap.json, when the user installed this package, its own
foo package is ignored,
foo is installed under
node_modules/my-package/node_modules/foo instead of
node_modules/foo, and it’s version is locked
Is there any solution to solve this?