npm update常用命令使用

时间:2025-05-16 09:15:44

npm update常用命令使用
一、更新

npm-check检查更新
npm install -g npm-check
npm-check
-upgrade更新
npm install -g npm-upgrade
npm-upgrade

3.更新全局包:
npm update -g

4.更新生产环境依赖包:
npm update --save

5.更新开发环境依赖包:
npm update --save-dev