跳至主要內容

npm 常用命令

墨七小于 1 分钟约 108 字...

npm 常用命令

阿里巴巴开源镜像站

https://developer.aliyun.com/mirror/open in new window

npm 代理加速设置

http://www.npmmirror.com/open in new window

windows 下 使用 git-bash 来运行 npm run

npm config set script-shell "C:\\meichangliang\\soft\\Git\\bin\\bash.exe"

Linux 设置本地代理


export ALL_PROXY=socks5://127.0.0.1:10808

一些其它指令


## npm 升级
npm -g install npm

## 清除缓存
npm cache clean --force

## 卸载

npm uninstall xxx (-g)


## 查看更新
npm -g outdated


## 其它指令

npm audit fix

npm audit fix --force

npm audit

上次编辑于:
贡献者: mo7
你认为这篇文章怎么样?
  • 0
  • 0
  • 0
  • 0
  • 0
  • 0
评论
  • 按正序
  • 按倒序
  • 按热度