yarn安裝中出現依賴衝突 package.json 中的resolutions 欄位

wanglei1900發表於2024-10-19

只能在yarn中使用

安裝遇到了
You may need an additional loader to handle the result of these loaders.

a,b 依賴 同時依賴於c,但是產生了版本衝突

{
  "name": "project",
  "version": "1.0.0",
  "dependencies": {
    "a": "1.0.0",
    "b": "1.0.0",
  },
  "resolutions": {
+  "c": "1.0.0",  }
  }

相關文章