-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] uninstall does not remove --no-save installed package from node_modules #2309
Comments
Confirmed. This appears to be a bug in how we're handling the fake |
* fix: determine installed package's name on npm 7 * test: make expectations work for npm 5 to 7 This addresses the following changes in behavior. Saved GitHub URL format in package.json: - npm 6: git+https://github.com/apache/cordova-android.git#4.1.x - npm 7: github:apache/cordova-android#4.1.x Empty devDependencies format in package.json: - npm 6: `{}` - npm 7: `undefined` * ci: add node@15 w/ npm@7 * ci: use npm7 version that fixed npm/cli#2309
Is there any plan to fix this bug in npm6 also? Would love to see it. |
Current Behavior:
If I install a package using the
--no-save
option, it is not removed fromnode_modules/
upon its uninstallation.Expected Behavior:
If I install a package using the
--no-save
option, it should get removed fromnode_modules/
upon its uninstallation.NB: this is also how npm 6 behaves.
Steps To Reproduce:
node_modules/q
still exists.Omitting the
--no-save
option for the uninstallation command yields the same result. Substitutingmkdir node_modules
withnpm init --yes
makes no difference either.Environment:
18.04.5
&19.10
12.19.0
&15.4.0
7.0.15
&7.1.1
The text was updated successfully, but these errors were encountered: