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/

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容