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全局变量设置设置的主要内容,如果未能解决你的问题,请参考以下文章

javascript 用于在节点#nodejs #javascript内设置react app的代码片段

nodejs环境变量全局配置

linux下安装nodejs怎么设置全局的

关于Postman+xmysql+nodeJs的实践分享

vue学习开发环境搭建

nodejs npm install全局安装和本地安装的区别