设置npm安装模块的全局位置和缓存位置:
npm config set prefix "D:\node\node-global"
npm config set cache "D:\node\node-cache"
设置镜像为淘宝镜像:
npm config set registry " https://registry.npm.taobao.org "
设置npm安装模块的全局位置和缓存位置:
npm config set prefix "D:\node\node-global"
npm config set cache "D:\node\node-cache"
设置镜像为淘宝镜像:
npm config set registry " https://registry.npm.taobao.org "