npm 设置缓存和国内源
2021-03-15 本文已影响0人
野十六
配置缓存目录
npm config set prefix "D:\nodejs\npm_global"
npm config set cache "D:\nodejs\npm_cache"
配置淘宝源
npm config set registry https://registry.npm.taobao.org
配置缓存目录
npm config set prefix "D:\nodejs\npm_global"
npm config set cache "D:\nodejs\npm_cache"
配置淘宝源
npm config set registry https://registry.npm.taobao.org