-
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] npm ls breaks when private repo dependency uses semver: for version matching #2262
Comments
What happens with npm 7? |
@ljharb - The result is better with npm 7. When running for production and development I get expected results but I do still get an error for
|
npm If your bug is preproducible on If your issue was a feature request, please consider opening a new RRFC or RFC. If your issue was a question or other idea that was not CLI-specific, consider opening a discussion on our feedback repo Closing: This is an automated message. |
Reopening; the latest stack trace is npm 7. |
The git tag parsing underwent a significant rewrite since this issue was opened. Is this still an issue in npm@7? |
I'm still getting this issue with npm 7.19.1 |
Current Behavior:
When
package.json
contains a private git repository as a dependency with#semver
version matchingnpm ls
does not resolve any paths forproduction
ordevelopment
options. The following error occurs when not using the--silent
flag.Expected Behavior:
Expect
npm ls
to output paths when the#semver
syntax is not in use.Steps To Reproduce:
package.json
add a private repository to your dependencies. For example:dependencies
anddevDependencies
and then run the following:npm ls --production=true --parseable=true --long=false --silent --all
OR
npm ls --development=true --parseable=true --long=false --silent --all
You will not get any output from this command unless you remove
semver:
from the private git repo reference.Environment:
The text was updated successfully, but these errors were encountered: