npm安装,更新,卸载,查看
//1.为了安装快一点,切换到淘宝就像安装
npm config set registry https://registry.npm.taobao.org
//2.恢复镜像
npm config delete registry
//3.全局安装-g:global全局
npm -g install XXXX
//运行目录下安装
npm install XXXX
//指定版本安装
npm install XXXX@X.X.X
//卸载
npm uninstall 包名
//全局更新
npm -g update 包名 # 全局更新
//当前运行目录下更新
npm update 包名 # 本地更新
//查看已安装的模块:
npm ls