美文网首页
npm学习总结

npm学习总结

作者: correns | 来源:发表于2019-11-03 15:14 被阅读0次

    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学习总结

          本文链接:https://www.haomeiwen.com/subject/ajzkbctx.html