Closed peitschie closed 3 years ago
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.
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.
What / Why
When a repository is configured locally that is different to an existing
package-lock.json
resolved URL, subsequent re-installations of modules with the--no-save
option will fail to resolve child dependencies.Current Behavior
Given a project with an existing dependency &
package-lock.json
file (for example, oncordova-plugin-qrscanner
), when the local registry is changed andnpm install --no-save cordova-plugin-qrscanner
is executed, thennpm ls
shows that there are unmet dependencies for the module.Steps to Reproduce
With a simple NPM project, using the default npm repository
package-lock.json
with the current URL:npm install --save-production cordova-plugin-qrscanner
. At this point the resolved URL in thepackage-lock.json
file is probablyhttps://registry.npmjs.org/cordova-plugin-qrscanner/-/cordova-plugin-qrscanner-3.0.1.tgz
.npm config set registry https://artifactory.localnet/artifactory/api/npm/npmjs.org/
--no-save
option specified:npm install --no-save cordova-plugin-qrscanner
npm ls --depth=0
Locally, on NPM v6.9.0, step 4 shows
Full reproduction script:
Expected Behavior
After executing
npm install --no-save cordova-plugin-qrscanner
,npm ls
should show all dependencies are satisfied for the module, irrespective of the whether the configured repository matches the resolved URL in the package-lock.json file.Who