2.运用nrm use taobao,nrm如果没有装置,就运用npm i -g nrm,然后再运用nrm use taobao
3.再运用npm i 装置一遍所有依靠包,这时分没下载的会自动下载,再运用npm install进行初始化即可
[root@elastic elasticsearch-head]# npm i -g nrm
[root@elastic elasticsearch-head]# nrm use taobao
Registry has been set to: https://registry.npm.taobao.org/
[root@elastic elasticsearch-head]# npm i
[root@elastic elasticsearch-head]# npm install
npm WARN elasticsearch-head@0.0.0 license should be a valid SPDX license expression
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.13 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
up to date in 4.652s