//常规的包升级方式
npm update (包)
sudo npm install -g npm-check-updates
sudo cnpm install -g npm-check-updates
zsh
npm-check-updates
//或者ncu ncu 是它的别名(alias)
All dependencies match the latest package versions :)
express 4.12.x → 4.13.x
multer ^0.1.8 → ^1.0.1
react-bootstrap ^0.22.6 → ^0.24.0
react-a11y ^0.1.1 → ^0.2.6
webpack ~1.9.10 → ~1.10.5
ncu -a
//即可一键升级