npm程序包注册表的基本URL(包括尾随斜杠)。 应该用于指定范围的程序包的npm注册表。 例如,设置 @babel:registry=https://example.com/packages/npm/ will enforce that when you use pnpm add @babel/core, or any @babel scoped package, the package will be fetched fromhttps://example.com/packages/npmins...
Most of the arguments that apply to npm's rewriting of package.json apply here – this is really a file that's not meant to be maintained by a person, and isn't even really meant to be read by humans (the syntax we use for saving multi-registry information is a good example of thi...
I love that you can specify a per-project.npmrcby placing the file in the root of the project. However, it sucks having to add an identical.npmrcto a set of projects. For example, here is my current setup: I work for a company that has their own private registry. It is configured ...
@example/***:registry=ssh/url/of/my/private/repo/in/bitbucket I included @example/*** to mypackage.jsoncode, allowing me to install the necessary dependency from my private repository. Despite creating the.npmrcfile in the root of the project, it appears to have no effect and is not rec...
This is no longer true – the npm 1.5 alphas all have support for being logged into multiple registries simultaneously. npm login --registry=https://registry.npmjs.org and npm login --registry=http://npme.company.com:8080/ results in this $HOME/.npmrc: //registry.npmjs.org/:_password=...