Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装依赖的时候报错提示vite版本不对有冲突 #17201

Open
zengkaii opened this issue Jan 16, 2025 · 0 comments
Open

安装依赖的时候报错提示vite版本不对有冲突 #17201

zengkaii opened this issue Jan 16, 2025 · 0 comments

Comments

@zengkaii
Copy link

相关平台

微信小程序

小程序基础库: 3.4.5
使用框架: Vue 3

复现步骤

1、taro init taro-app

2、npm i

期望结果

正常安装依赖

实际结果

安装依赖失败提示vite版本冲突

环境信息

 Taro v4.0.9


  Taro CLI 4.0.9 environment info:
    System:
      OS: Windows 11 10.0.22631
    Binaries:
      Node: 20.11.1 - C:\Program Files\nodejs\node.EXE
      Yarn: 1.22.22 - C:\Program Files\nodejs\yarn.CMD
      npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD
    npmPackages:
      @tarojs/cli: 4.0.9 => 4.0.9 
      @tarojs/components: 4.0.9 => 4.0.9 
      @tarojs/helper: 4.0.9 => 4.0.9
      @tarojs/plugin-framework-vue3: 4.0.9 => 4.0.9
      @tarojs/plugin-html: 4.0.9 => 4.0.9
      @tarojs/plugin-platform-alipay: 4.0.9 => 4.0.9
      @tarojs/plugin-platform-h5: 4.0.9 => 4.0.9
      @tarojs/plugin-platform-jd: 4.0.9 => 4.0.9
      @tarojs/plugin-platform-qq: 4.0.9 => 4.0.9
      @tarojs/plugin-platform-swan: 4.0.9 => 4.0.9
      @tarojs/plugin-platform-tt: 4.0.9 => 4.0.9
      @tarojs/plugin-platform-weapp: 4.0.9 => 4.0.9
      @tarojs/runtime: 4.0.9 => 4.0.9
      @tarojs/shared: 4.0.9 => 4.0.9
      @tarojs/taro: 4.0.9 => 4.0.9
      @tarojs/vite-runner: 4.0.9 => 4.0.9
      babel-preset-taro: 4.0.9 => 4.0.9
      eslint-config-taro: 4.0.9 => 4.0.9

补充信息

npm i --force 可以安装成功,但是不希望使用--force

@tarojs/plugin-framework-vue3 这个安装包 peerDependencies : {"vite": "^4", "@vitejs/plugin-vue": "^5"}

但是@vitejs/plugin-vue 这个5.x版本依赖是这样的 peerDependencies: {"vite": "^5.0.0 || ^6.0.0"}

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant