运维经--目录

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/,你可以选择你自己的源。


夏洛克
43 声望2 粉丝