LoginSignup
0
0

More than 1 year has passed since last update.

「package.js」についてメモ書き

Last updated at Posted at 2022-05-26

「package.js」について

package.jsonの中身を直接いじるものなのかと思っており、jsonのバージョンを変更してnpm installコマンドを叩いていた。
しかし、依存関係エラーが出てなかなか解消できなくて、余計な時間を食ってしまった。

npm公式に行っていちいち確認して、パッケージを入れ直していたが、色々調べたらnpm-check-updatesという一括更新コマンドがあった。

そのため、以下の更新コマンドを利用する。

npm-check-updates

まず、npm-check-updatesが入っていない場合は、インストールする必要がある。

npm install -g npm-check-updates

以下のコマンドで更新

npm-check-updates -u

その結果、 package.jsonの中身が更新されている。

0
0
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
0
0