查看“︁Node.js/npm/源”︁的源代码
来自康健生活
←
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.tsinghua.edu.cn/ |} == 工具 == === 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"> npm config set @q:registry http://registry.npm.qiwoo.org npm install --registry=https://registry.npmmirror.com</syntaxhighlight>|$|/home/kangkk}} === nrm === <blockquote> <syntaxhighlight lang="bash"> npm i -g nrm </syntaxhighlight></blockquote> {{shc_out|<syntaxhighlight lang="bash"> nrm ls</syntaxhighlight>|<syntaxhighlight lang="text"> * npm -------- https://registry.npmjs.org/ yarn ------- https://registry.yarnpkg.com/ cnpm ------- http://r.cnpmjs.org/ taobao ----- https://registry.npm.taobao.org/ nj --------- https://registry.nodejitsu.com/ npmMirror -- https://skimdb.npmjs.com/registry/ edunpm ----- http://registry.enpmjs.org/ </syntaxhighlight>|kangjian@kangkk:~/github/kangkk.github.io$}} {{shc_out|<syntaxhighlight lang="bash"> nrm use taobao</syntaxhighlight>|<syntaxhighlight lang="text"> Registry has been set to: https://registry.npm.taobao.org/ </syntaxhighlight>|kangjian@kangkk:~/github/kangkk.github.io$}} ==== add ==== {{Shc_out|<syntaxhighlight lang="bash"> nrm add company http://registry.npm.qiwoo.org</syntaxhighlight>|<syntaxhighlight lang="bash"> add registry company success </syntaxhighlight>|$|/home/kangkk}} == .npmrc == {{hc|.npmrc|<syntaxhighlight lang="text"> sass_binary_site=https://npm.taobao.org/mirrors/node-sass/ phantomjs_cdnurl=https://npm.taobao.org/mirrors/phantomjs/ electron_mirror=https://npm.taobao.org/mirrors/electron/ registry=https://registry.npm.taobao.org</syntaxhighlight>}} 根据域设置单独源 {{hc|head=.npmrc|output=<syntaxhighlight lang="text"> registry=https://registry.nlark.com/ @q:registry=http://registry.npm.qiwoo.org</syntaxhighlight>}}
此页面嵌入的页面:
模板:Hc
(
查看源代码
)
模板:Hc/style.css
(
查看源代码
)
模板:Shc
(
查看源代码
)
模板:Shc/style.css
(
查看源代码
)
模板:Shc out
(
查看源代码
)
模板:Shc out/style.css
(
查看源代码
)
返回
Node.js/npm/源
。
导航菜单
康健生活
搜索
user-page
通知
user-interface-preferences
个人工具
登录
五一
多读书,多运动,多到远处走走,再看看不一样的世界。