nodejs全局变量设置设置

Posted 潜水的阳光

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nodejs全局变量设置设置相关的知识,希望对你有一定的参考价值。

编辑 ~/.npmrc 加入下面内容

prefix = D:\tool\nodejs\node_global
cache = D:\tool\nodejs\node_cache
registry = http://registry.cnpmjs.org
#registry=https://registry.npmjs.org/
#proxy=http://127.0.0.1:1080
#https-proxy=http://127.0.0.1:1080

  

以上是关于nodejs全局变量设置设置的主要内容,如果未能解决你的问题,请参考以下文章