npm学习总结

npm常用本地配置,根据需要进行增加

bogon:~ localhost$ npm config list
; cli configs
metrics-registry = "https://registry.npm.taobao.org/"
scope = ""
user-agent = "npm/6.9.0 node/v12.4.0 darwin x64"

; userconfig /Users/localhost/.npmrc
cache = "/Users/localhost/npm/node_cache"
prefix = "/Users/localhost/npm/node_global"
registry = "https://registry.npm.taobao.org/"

; builtin config undefined

; node bin location = /usr/local/Cellar/node/12.4.0/bin/node
; cwd = /Users/localhost
; HOME = /Users/localhost
; "npm config ls -l" to show all defaults.

其他可以参考:https://www.jianshu.com/p/30ef3c874c1e
淘宝镜像:https://npm.taobao.org/

你可能感兴趣的:(npm学习总结)