Open NozzerFX opened 3 years ago
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 production
verbose stack Error: invalid: some-private-library@1.0.1 C:\Local Development\Web Projects\MyProject\node_modules\some-private-library 23 verbose stack at ls (C:\Users\richa\AppData\Roaming\npm\node_modules\npm\lib\ls.js:491:7) 24 verbose cwd C:\Local Development\Web Projects\MyProject 25 verbose Windows_NT 10.0.19041 26 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Users\richa\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "ls" "--production=true" "--parseable=true" "--long=false" "--all" 27 verbose node v12.16.1 28 verbose npm v7.0.15 29 error code ELSPROBLEMS 30 error invalid: some-private-library@1.0.1 C:\Local Development\Web Projects\MyProject\node_modules\some-private-library 31 verbose exit 1
npm v6
is no longer in active development; We will continue to push security releases to v6
at our team's discretion as-per our Support Policy.
If your bug is preproducible on v7
, please re-file this issue using our new issue template.
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
ORnpm 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: