Proposal: Downgrade to warn for "npm ls" of known extraneous packages #6141
Comments
Perhaps a less invasive option would be to have |
@timoxley is this a final suggestion? Should I go forward and implement it? |
Needs @othiym23 to weigh in |
How about putting |
@othiym23 I experimented with Do you think it would be a good idea if |
I'm pretty sure that weakening the missing, invalid or extraneous package warnings here is the wrong thing to do; either we make it a switch, and add another little bit of conditional logic we need to support, or we change the default, which makes life difficult for people using npm in large builds, where they want assurance that what's available after a successful build is a consistent, complete installation. I think the approach of putting napa configuration in Am I making sense? This seems like a tough balance to strike, and it's important to get right. |
Yep that makes sense. I'll try adjusting the tooling on our end to work with |
Things have changed a bit since the advent of As to the rest, the point of |
While trying to apply
npm shrinkwrap
I had issues with extraneous packages. Their origin was known, they were installed by the napa package which is a handy library that installs frontend libraries as npm modules for consumption by browserify.The extraneous Error originates from
npm ls
and I wanted to ask, before taking the time to submit a PR, if you would be open to create an array ofknownPackages
like napa and honor their respective keys in package.json (in this case it would be thenapa
key) so that detected extraneous packages that can be resolved to known packages like napa would not generate an Error but a Warn, allowing shrinkwrap to move forward./cc shama/napa#20
The text was updated successfully, but these errors were encountered: