1、安装依赖。npm install -g npm-check-updates 2、更新package.json中的依赖包。ncu -u 3、安装新的依赖包。(需要手工解决依赖问题)npm install