1. 在系统环境变量 path 里添加 D:\soft\nodejs\


设置成功之后

2.设置NPM
npm config set prefix "D:\soft\nodejs\node_modules\npm\node_global"
npm config set cache "D:\soft\nodejs\node_modules\npm\node_cache"
版权声明:本文为zhangju163原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。
1. 在系统环境变量 path 里添加 D:\soft\nodejs\


设置成功之后

2.设置NPM
npm config set prefix "D:\soft\nodejs\node_modules\npm\node_global"
npm config set cache "D:\soft\nodejs\node_modules\npm\node_cache"