现在国内推荐npm源:https://npmmirror.com/mirrors/npm/
1、nvm
绿色版本安装:nvm报错: ERROR open \settings.txt: The system cannot find the file specified-CSDN博客
2、设置全局npm
【淘宝源】npm config set registry http://registry.npmmirror.com
备注:也可以使用nrm
npm config set cache D:\KitTools\CacheData\node_cache
npm config set prefix D:\KitTools\CacheData\node_global