Node.js 范围和存储库
示例
# Set the repository for the scope "myscope" npm config set @myscope:registry http://registry.corporation.com # Login at a repository and associate it with the scope "myscope" npm adduser --registry=http://registry.corporation.com --scope=@myscope # Install a package "mylib" 从范围 "myscope" npm install @myscope/mylib
如果您自己的软件包的名称以开头,@myscope并且范围“myscope”与其他存储库相关联,npmpublish则将您的软件包上传到该存储库。
您还可以将以下设置保存在.npmrc文件中:
@myscope:registry=http://registry.corporation.com //registry.corporation.com/:_authToken=xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxxxxx
当在CI服务器上自动化构建时,这很有用
热门推荐
2 图书馆简短祝福语
10 祝福语大全短句简短英语
11 送病人简短的祝福语
12 闺蜜小孩祝福语简短
13 破五的祝福语简短
14 生日祝福语简短大方老师
15 妈妈的祝福语简短优美
16 朋友出国旅游祝福语简短
17 俄语随口祝福语简短版
18 升班祝福语简短10字