verdaccio
使用搭建私有仓库
npm install -g verdaccio
verdaccio
npm install --registry http://localhost:4873
发布私有仓库
npm publish --registry http://localhost:4873
使用
NPM
npm install --registry http://localhost:4873
Yarn (1.x)
// .yarnrc
registry "http://localhost:4873"
Yarn Berry (>=2.x)
// .yarnrc.yml
npmRegistryServer: "http://localhost:4873"
unsafeHttpWhitelist:- localhost
// Or
npmScopes:"joseph":npmAlwaysAuth: truenpmRegistryServer: "http://localhost:4873/"unsafeHttpWhitelist:- localhost
Yarn Berry的缓存路径
C:\Users\your\AppData\Local\Yarn\Berry\cache
如何查看global npm authvsts-npm-auth -c %userprofile%\.npmrc -r -v detailed
相关的token信息存在:C:\Users\your account\.npmrc
不错的多包管理项目
https://github1s.com/sabertazimi/bod/blob/HEAD/packages/cra-template-bod/scripts/utils.ts#L53