LoginSignup
0
0

[yarn] パッケージが複数バージョン入っている時のアップグレード方法

Posted at

結論

resolutionsを使う

手順サンプル

@types/node@* が古いバージョンを参照してしまう問題の解決

resolutionsを追記する

vi package.json
package.json
+ "resolutions": {
+    "@types/node": "18.18.2"
+ }

yarn installして更新されているか確認

rm -rf node_modules
yarn install
cat yarn.lock | grep @types/node@*
vi package.json
package.json
- "resolutions": {
-    "@types/node": "18.18.2"
- }

参考

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