yarn安装中出现依赖冲突 package.json 中的resolutions 字段

只能在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",  }
  }
posted @ 2024-10-19 22:08  wanglei1900  阅读(5)  评论(0编辑  收藏  举报