dcloudio / uni-preset-vue

uni-app preset for vue
Apache License 2.0
308 stars 116 forks source link

uni-preset-vue#vite 安装会失败了,怎么解决 #57

Closed liugang closed 2 years ago

liugang commented 2 years ago

npx degit dcloudio/uni-preset-vue#vite my-vue3-project

> cloned dcloudio/uni-preset-vue#vite to my-vue3-project

npm install

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@dcloudio%2funi-uts-vite - Not found
npm ERR! 404 
npm ERR! 404  '@dcloudio/uni-uts-vite@3.0.0-alpha-3050320220729002' is not in this registry.
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/test/.npm/_logs/2022-08-01T16_26_44_978Z-debug-0.log

使用npm 创建项目, 报错了, 网上搜索, 自己看看代码, 没找到怎么解决这个问题.

zhetengbiji commented 2 years ago

收到,已经更新模版。 重新建立项目,或者手动锁定项目中uni相关依赖版本为 3.0.0-alpha-3050320220729001。

liugang commented 2 years ago

谢谢,可以了