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服务器上自动化构建时,这很有用
热门推荐
10 香港老妈结婚祝福语简短
11 毕业立体贺卡祝福语简短
12 简短新年年会祝福语
13 评论小品祝福语大全简短
14 恭喜师兄结婚祝福语简短
15 员工集体辞职祝福语简短
16 高中新生祝福语 简短
17 装修祝福语男生搞笑简短
18 生日开业蛋糕祝福语简短