Skip to content

Instantly share code, notes, and snippets.

@ko31
Created September 11, 2019 03:04
Show Gist options
  • Save ko31/fe0326f31bc2ca9e93cef498e6e97aef to your computer and use it in GitHub Desktop.
Save ko31/fe0326f31bc2ca9e93cef498e6e97aef to your computer and use it in GitHub Desktop.
vulnerabilities alert が出るので npm-check-updates でパッケージをアップデートする

npm-check-updates をインストールする。

$ npm install -g npm-check-updates

更新可能なパッケージを確認する。

$ ncu

更新可能なパッケージを package.json に反映する。

$ ncu -u

パッケージを更新する。

$ npm update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment