LoginSignup
9
9

More than 5 years have passed since last update.

Node のプロジェクトで、依存モジュールのアップデートを行う

Posted at

Node のプロジェクトで依存モジュールのアップデートをしたときに、npm-check-updates を使ったら、便利だったので、メモ。

$ npm install -g npm-check-updates

で、インストールできる。

npm-check-updates のコマンドを打つと、

$ npm-check-updates
...
Dependency "lodash" could be updated to ~2.2.1.
Dependency "mocha" could be updated to ~1.13.0
Dependency "chai" could be updated to ~1.8.1
Dependency "sinon" could be updated to ~1.7.3
Run 'npm-check-updates -u' to upgrade your package.json automatically

こんな感じで、依存モジュールのアップデートが確認できる。

npm-check-updates -u とオプションを付けると、package.json の依存モジュールのバージョンをいい感じに変更してくれたりもする。

9
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
9
9