Node.js/npm/源:修订间差异
来自康健生活
创建页面,内容为“== 标题文本 == == 源地址 == {| class="wikitable" |- | 官方 || https://registry.npmjs.org/ |- | 淘宝 || https://registry.npm.taobao.org |- | 阿里云 || https://npm.aliyun.com/ |- | 腾讯云 || https://mirrors.cloud.tencent.com/npm/ |- | 华为云 || https://mirrors.huaweicloud.com/repository/npm/ |- | 网易 || https://mirrors.163.com/npm/ |- | 中国科学技术大学 || http://mirrors.ustc.edu.cn/ |- | 清华大学 || https://mirrors.tuna.tsinghu…” |
|||
| 第22行: | 第22行: | ||
== 工具 == | == 工具 == | ||
=== registry === | === registry === | ||
{{Shc_out|<syntaxhighlight lang="bash"> | |||
npm config get registry</syntaxhighlight>|<syntaxhighlight lang="bash"> | |||
http://registry.npm.qiwoo.org/ | |||
</syntaxhighlight>|$|/home/kangkk}} | |||
设置 registry。 | |||
{{shc|<syntaxhighlight lang="bash"> | |||
# npm config set @myco:registry http://reg.example.com | |||
npm config set registry https://registry.npm.taobao.org</syntaxhighlight>|$|/home/kangkk}} | |||
进行分开测试 | |||
{{shc|<syntaxhighlight lang="bash"> | {{shc|<syntaxhighlight lang="bash"> | ||
npm config set registry | npm config set @q:registry http://registry.npm.qiwoo.org | ||
npm install --registry=https://registry.npmmirror.com</syntaxhighlight>|$|/home/kangkk}} | |||
=== nrm === | === nrm === | ||