文档
CLI
Npm

查看 npm 的版本

npm -v

查看全局已安装

npm ls -g

所有包的依赖显示

npm ls --depth 0

查看项目中已安装

npm ls

查看详细的漏洞信息

npm audit

自动修复大多数漏洞

npm audit fix

查看依赖更新对比

npm outdated

更新到最新模块

npm i next@latest

更新模块

npm update $

卸载模块

npm uninstall $