You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.
Build a private package and tarball it at a specific location http://some_package-1.2.3.tgz
install with npm install --save http://some_package-1.2.3.tgz
update package.json with entry "some_package": "http://some_package-1.2.4.tgz"
In this scenario, npm run shrinkwrap will not fail. However, in node_modules/some_package/package.json it shows "_from": "http://some_package-1.2.3.tgz" which conflicts with the definition in package.json
The text was updated successfully, but these errors were encountered:
The implementation relies on npm ls to verify between package.json & node_modules.
This works for all npm registry dependencies.
For git dependencies we have extra verification between package.json & node_modules by parsing the version tag out of the git dependency url. This allows us to verify against the version field in node_modules/{name}/package.json
Verifying an arbitrary HTTP URL against node_modules would require a rule for how to read the version number out of the HTTP URL. This is not implemented yet.
I don't think there is a need to extract the version from the HTTP URL, matching the URL declared in package.json with the one declared in node_modules/some_package/package.json inside the "_from" section seems that it would be sufficient.
Here is the scenario:
http://some_package-1.2.3.tgz
npm install --save http://some_package-1.2.3.tgz
package.json
with entry"some_package": "http://some_package-1.2.4.tgz"
In this scenario,
npm run shrinkwrap
will not fail. However, innode_modules/some_package/package.json
it shows"_from": "http://some_package-1.2.3.tgz"
which conflicts with the definition inpackage.json
The text was updated successfully, but these errors were encountered: