taro pnpm 对等依赖安装失败

k7fdbhmy  于 5个月前  发布在  其他
关注(0)|答案(1)|浏览(70)

相关平台

微信小程序

小程序基础库: none
使用框架: React

复现步骤

直接使用cli,init安装,之后pnpm提示
WARN  Issues with peer dependencies found
packages/app
└─┬ @tarojs/webpack5-runner 3.6.7
└─┬ vue-loader 15.10.1
└─┬ @vue/component-compiler-utils 3.3.0
└─┬ consolidate 0.15.1
├── ✕ unmet peer react-dom@^16.13.1: found 18.2.0
└── ✕ unmet peer react@^16.13.1: found 18.2.0

期望结果

正确安装

实际结果

运行提示
WARN  Issues with peer dependencies found
packages/app
└─┬ @tarojs/webpack5-runner 3.6.7
└─┬ vue-loader 15.10.1
└─┬ @vue/component-compiler-utils 3.3.0
└─┬ consolidate 0.15.1
├── ✕ unmet peer react-dom@^16.13.1: found 18.2.0
└── ✕ unmet peer react@^16.13.1: found 18.2.0

环境信息

Taro v3.6.7

  Taro CLI 3.6.7 environment info:
    System:
      OS: Windows 10 10.0.22621
    Binaries:
      Node: 16.14.2 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.19 - ~\AppData\Roaming\npm\yarn.CMD
      npm: 8.5.0 - C:\Program Files\nodejs\npm.CMD
    npmPackages:
      @tarojs/plugin-platform-alipay: 3.6.7 => 3.6.7
      @tarojs/webpack5-runner: 3.6.7 => 3.6.7
wlwcrazw

wlwcrazw1#

解决了吗?我目前也是在monrepo里面运行pnpm i 跟你的一样

相关问题