参考连接:https://blog.csdn.net/weixin_44779079/article/details/146536235](https://blog.csdn.net/weixin_44779079/article/details/146536235)
环境变量配置:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| # 设置配置文件存放 npm config set prefix "D:\nodejs\node_global" npm config set cache "D:\nodejs\node_cache"
# 换源 # 淘宝 npm config set registry http://registry.npm.taobao.org # 华为 npm confg set registry https://mirrors.huaweicloud.com/repository/npm/
用户环境变量(这里不能配置到插件位置) path D:\nodejs\node_global
全局配置(这里可以写到modules) Path D:\nodejs\node_global\node_modules
|
