0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

angular/ionicのpackage.json内モジュールのバージョンを最新にする

Posted at

備忘を兼ねて、angular/ionicのモジュールを最新にする方法を記述する

1 ncuのインストール
 以下のコマンドを実行してncuをインストールする

$ npm install -g npm-check-updates

2 ncuの実行
 プロジェクトフォルダ下にて以下を実行しpackage.json内のモジュールバージョンを最新にする

 ncu -u

3 モジュールの依存関係を更新する
 以下を実行してモジュールの依存関係を更新する

 ng update

 このとき

We analyzed your package.json, there are some packages to update:

 のメッセージが表示されたら、個別に依存関係を更新する

ng update @XXXX/XXXX

 個別に更新しようとした際に

Repository is not clean. Please commit or stash any changes before updating

 というエラーメッセージが表示されたらオプションをつけて実行する

ng update @XXXX/XXXX --allow-dirty --force

4 ビルドする
 最後にビルドしてエラーが出ないことを確認する

ng build または ionic build
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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?