[BUG] npm install --prefix="$PWD" adds invalid dependency to package.json #6960
Labels
Bug
thing that needs fixing
Priority 2
secondary priority issue
Release 9.x
work is associated with a specific npm 9 release
Is there an existing issue for this?
This issue exists in the latest npm version
Current Behavior
On macOS, this does the expected thing (generates a
package-lock.json
:On Windows, however, it does strange things. It:
{ "dependencies": { "project": "file:" }}
topackage.json
project
pointing to PWDExpected Behavior
I expect Windows to have the same behavior. Particularly,
package.json
should not be modified.Steps To Reproduce
See above
Environment
The text was updated successfully, but these errors were encountered: