This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
Local deps where the dep name and the name in the package.json differ don't result in an error #8588
Labels
Milestone
So if in the main package.json:
{ "dependencies": { "foo": "../path/to/foo" } }
And in `../path/to/foo:
{ "name": "bar" }
This should result in an error. Instead,
npm@2
happily installs it andnpm@3
adds it to the ideal tree and then prunes it as it appears to be extraneous, so it never ends up installing it.The text was updated successfully, but these errors were encountered: