## とりあえずバージョンアップ ```console $ rm package-lock.json $ volta pin node@lts $ npm i npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: @angular/[email protected] npm ERR! node_modules/@angular/common npm ERR! @angular/common@"^10.2.5" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @angular/common@">=9.0.0 <10.0.0" from @ng-select/[email protected] npm ERR! node_modules/@ng-select/ng-select npm ERR! @ng-select/ng-select@"^4.0.4" from the root project ``` > @angular/common@">=9.0.0 <10.0.0" from @ng-select/[email protected] [[ng-select]]の4.0.4が[[Angular]]のv9までしかサポートしていない。 ## [[package.json]]の編集 > `>=10.0.0 <11.0.0 v5.x` とあるのでとりあえず`5.1.0`に上げてみる。 ```console npm ERR! Could not resolve dependency: npm ERR! peer @angular/core@"^2.4.0 || ^4.0.3 || ^5.0.0" from [email protected] npm ERR! node_modules/angular2-markdown npm ERR! angular2-markdown@"^2.2.3" from the root project ``` 次は`angular2-markdown`。サイトに行くと[[Angular Markdown]]に名前が変わってた。`angular2-markdown`は消しておく。 ```console npm ERR! node_modules/highcharts npm ERR! highcharts@"^9.1.1" from the root project npm ERR! highcharts@"*" from @types/[email protected] npm ERR! node_modules/@types/highcharts npm ERR! peer @types/highcharts@">=4.2.1" from [email protected] npm ERR! node_modules/ng2-highcharts npm ERR! ng2-highcharts@"^1.2.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer highcharts@">=4.2.1 <7.0.0" from [email protected] npm ERR! node_modules/ng2-highcharts npm ERR! ng2-highcharts@"^1.2.0" from the root project ``` この辺から面倒になってきたので一括アップデートした方がよさそう...。だけど諸々バージョンが上がりすぎてて無理だ。。 [[ng2-highcharts]]が[[Highcharts]]のv7未満までしか対応していないからもうダメなんでは。。 [[Highcharts Angular]]というやつに移行したらしい。 もうあきらめるかな。。