nodejs npm
查看配置: npm config ls
; cli configs metrics-registry = "https://registry.npmjs.org/" scope = "" user-agent = "npm/6.9.0 node/v12.6.0 linux x64" ; userconfig /root/.npmrc prefix = "/data/ELK/elasticsearch-head-master" registry = "https://registry.npmjs.org/" ; node bin location = /data/ELK/node-v12.6.0-linux-x64/bin/node ; cwd = /data/ELK/elasticsearch-head-master ; HOME = /root ; "npm config ls -l" to show all defaults.
修改参数:npm config set
修改本地仓库地址:npm config set prefix “/data/ELK/elasticsearch-head-master”