npm常用指令
# 清除缓存
npm cache clean -f
# 查看全局安装的包
npm list -g --depth 0
# 卸载全局安装的包
npm uninstall -g jshint
# 更新全局安装的包
npm install -g npm
# 更改下载的包位置
npm config set prefix "d:\data\node_package\npm"
npm config set cache "d:\data\node_package\npm_cache"
# 查看配置
npm config list
# 加速下载常用
# 1、查看一下当前源
npm config get registry
# 2、切换为淘宝源
npm config set registry https:
# 3、换成原来的
npm config set registry https:
# 设置代理
npm config set proxy http:
npm config set https-proxy http:
# 取消代理
npm config delete proxy
npm config delete https-proxy