the default registry url is a magic value meaning "the currently configured registry". #544
-
Currently registry.npmjs.org has special meaning when used in package-lock.json resolved field - it is an alias for the currently configured registry. If the behavior is documented, I can't find it. I think other registries should be able to enable this behavior. If your package-lock has However if you modify the package-lock while you have a different registry set the resolved field will use your registry, so if you change to another registry npm will use the old registry for your locked packages. If your package-lock has I understand this behavior as well, after all a package's dist.tarball host could be different than it's registry and shouldn't change when the registry changes. I think the behavior needs to be better documented, and there should be a way to enable the behavior for other registries. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@everett1992 if you would like to make documentation changes we accept pull requests at https://github.com/npm/documentation for our general documentation and https://github.com/npm/cli for our CLI speicfic documentatin |
Beta Was this translation helpful? Give feedback.
@everett1992 if you would like to make documentation changes we accept pull requests at https://github.com/npm/documentation for our general documentation and https://github.com/npm/cli for our CLI speicfic documentatin