NodeJsNPM改变安装包位置
npm config ls npm config set prefix "D:\Data\Node\npm" npm config set cache "D:\Data\Node\cache"
设置淘宝镜像
npm install -g cnpm --registry=https://registry.npm.taobao.org
npm config ls npm config set prefix "D:\Data\Node\npm" npm config set cache "D:\Data\Node\cache"
设置淘宝镜像
npm install -g cnpm --registry=https://registry.npm.taobao.org