更新前 | 更新后 | |
---|---|---|
hbuild版本 | 3.99 | 4.23 |
node版本 | 18.17.0^ | - |
vue | 3 | - |
npm config get registry | https://registry.npmmirror.com | - |
可能报错的内容不一致
但是急用hbuildx4.0版本以上的api时,可用yarn / pnpm,这两种可正常更新。
更新uniapp cli版本报错
npm ERR! While resolving: uni-preset-vue@0.0.0
npm ERR! Found: @dcloudio/vite-plugin-uni@3.0.0-3090920231225001
npm ERR! node_modules/@dcloudio/vite-plugin-uni
npm ERR! dev @dcloudio/vite-plugin-uni@“3.0.0-4020320240708001” from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! dev @dcloudio/vite-plugin-uni@“3.0.0-4020320240708001” from the root project
npm ERR!
npm ERR! Conflicting peer dependency: vite@5.2.8
npm ER