Replies: 1 comment 2 replies
-
You may be referring to https://github.com/npm/rfcs/blob/9450f614d821b98b9ff8612574befc969f84df5c/accepted/0035-registry-spec.md? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a project that I want to distribute to users. The project requires the installation of a variety of standard packages from npmjs.com like a typical project.
However I am also hosting my own private repository (using Verdaccio) and I have multiple custom private packages/modules that the users need to install as well.
Currently the only way to do this is by specifying the
--registry
flag like so:npm install --registry https://some.custom.registry.project.com
It would be awesome if NPM added a
registry
value to thepackage.json
so that users could just runnpm install
and be done with it.I noticed that
npm
has already added apublishConfig.registry
value for publishing to custom registries. I'm wondering about why there hasn't been aregistry
value like I am proposing. Is it for security purposes to prevent random packages from tricking people from accidentally install packages from custom repos that have security vulnerabilities added to the packages? I'm assuming that might be the reason but I don't know for sure.If this is the reason why this feature will never be implemented just let me know. Thanks,
Beta Was this translation helpful? Give feedback.
All reactions