# npm命令行工具

# 文档

https://docs.npmjs.com/cli/v8/commands/npm

# 查看配置文件

npm config list

# 切换镜像

# 更换为淘宝镜像
npm config set registry http://registry.npm.taobao.org

# 更换为原镜像
npm config set registry https://registry.npmjs.org/

# 安装/卸载包

# 安装
npm install 包名@版本

# 卸载包
npm uninstall 包名