-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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] Packages from private repository added with version '*' #2934
Comments
With no config this is not reproduceable. Can you share your npm config by typing There may be a bug with how save-prefix and/or save-exact are interacting, but will need to see your config to be sure. Also please be sure you are using the latest npm (there have been a few bug releases since 7.7.0) |
The output of
Also I've just tested again with npm 7.7.4 and the problem still exists. |
I still can't reproduce this w/ the info given. Can you try making a net new project (i.e. Are you installing by running |
I have tried setting up a new project and the problems still persist. The commands I executed were:
As before, There are no other environment variables that affect npm. |
I have also tried doing the same thing on my regular Windows (not inside WSL) and the problem is the same there. |
How is npm being told to pull your package from your registry instead of the npm registry? |
It is being told through the config parameter
in the quoted comment. |
May be related to #2844 |
@wraithgar this also happens if the last or only version is a beta.RC candidate |
@domiSchenk Thank you! That unlocked the solution for us, being able to reproduce it. The bug is actually in arborist.reify when it chooses to write the spec back to the package.json, was seeing if what ended up on disk intersected w/ the spec you asked for (which is We have a fix in flight now and this should be fixed soon and will go out hopefully w/ the next npm cli release. |
Current Behavior:
The packages are beeing added to the dependencies in
package.json
's with the version*
.This worked in npm version 7.6.3. Also, my Nexus Version is not the latest (OSS 3.17.0-01), so I do not expect it to support the latest npm features. However, I would still consider this a bug in npm, since it worked in the previous version and a minor version update should not break backwards-compatiblity (according to SemVer).
Expected Behavior:
The packages should be added with a concrete version e.g.
^1.0.0
.Steps To Reproduce:
npm install my-package
(my-package is hosted in a private Sonar Nexus)package.json
with verison*
.Environment:
The text was updated successfully, but these errors were encountered: