美文网首页
【运维经】第6章——node(npm)加速(1)

【运维经】第6章——node(npm)加速(1)

作者: 夏洛的克 | 来源:发表于2020-01-24 18:04 被阅读0次

node(npm)加速

慢!慢!慢!还是要解决慢的问题,通过换成国内源来解决npm install慢的问题。

(base) frank@deepin:~$ npm set registry https://registry.npm.taobao.org/
(base) frank@deepin:~$ npm config list
; cli configs
metrics-registry = "https://registry.npm.taobao.org/"
scope = ""
user-agent = "npm/6.13.6 node/v10.15.3 linux x64"

; userconfig /home/frank/.npmrc
home = "https://npm.taobao.org"
registry = "https://registry.npm.taobao.org/"

; node bin location = /usr/bin/node
; cwd = /home/frank
; HOME = /home/frank
; "npm config ls -l" to show all defaults.

我用的是淘宝源:https://registry.npm.taobao.org/,你可以选择你自己的源。

相关文章

网友评论

      本文标题:【运维经】第6章——node(npm)加速(1)

      本文链接:https://www.haomeiwen.com/subject/bwocthtx.html