在使用packages.json一段時間以後發現有部分依賴包有了新的版本,如何將package.json中的依賴更新爲最新版呢?shell
npm install -g npm-check-updates
ncu
ncu -u
更多參數npm