npm路径获取与配置
获取路径:npm config get prefix
设置路径: npm config set prefix "期望的安装路径"
npm缓存路径
获取路径: npm config get cache
设置路径: npm config set cache "期望的缓存路径"
源url配置
获取配置: npm config get registry
配置设置: npm config set registry https://registry.npm.taobao.org/
设淘宝源: npm config set registry https://registry.npmmirror.com