node パッケージのバージョン管理に便利なnpm-check-updates
Last Update: 2018.10.15 03:36:08
nodeのパッケージのアップデートに便利。
アップデート内容確認
$ ncu
autoprefixer ^8.6.2 → ^9.2.0
css-loader ^0.28.11 → ^1.0.0
postcss-loader ^2.1.5 → ^3.0.0
webpack-cli ^2.1.3 → ^3.1.2
The following dependencies are satisfied by their declared version range,
but the installed versions are behind. You can install the latest versions
without modifying your package file by using npm update.
If you want to update the dependencies in your package file anyway, run ncu -a.
underscore ^1.9.0 → ^1.9.1
mini-css-extract-plugin ^0.4.0 → ^0.4.4
node-sass ^4.9.0 → ^4.9.3
sass-loader ^7.0.1 → ^7.1.0
webpack ^4.8.3 → ^4.20.2
Run ncu with -u to upgrade package.json
これで問題なければ
nuc -u
でpackage.jsonを書き換え。
実際にパッケージのアップデートをするには
npm install
を実行する。