node配置国内源
设置全局安装和缓存文件夹 node_global、node_cache
npm config set prefix "C:\program\nodejs\node_global" #安装nodejs的路径位置
npm config set cache "C:\program\nodejs\node_cache" #安装nodejs的路径位置
设置国内源和查看国内源 https://registry.npm.taobao.org
npm config set registry https://registry.npm.taobao.org #设置国内源
npm config get registry #查看源
强制清理缓存 cache clean
npm cache clean --force

浙公网安备 33010602011771号