拉去taro+vue3.0遇到的问题

1、npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While r

npm版本太高了,降低版本

// 降低npm版本
npm install npm@3.8.6 -g

2、npm ERR! node-sass@4.14.1 postinstall: `node scripts/build.js` npm ERR! Exit status 1

这个是因为sass安装时获取源的问题,修改sass安装的源,使用taobao的npm

npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass

3、

rm -rf node_modules/

npm install   // cnpm 貌似不管用

------------------------------------------------------放弃-----------------------------------------------------------

4、创建taro+vue3 项目尝试

// 安装taro
npm install -g @tarojs/cli
// 创建项目
taro init myApp   // 选择Vue3 , Less , Gitee , Vue3-vuex
// 安装 taro-ui 和 taro-ui-vue3
cnpm install taro-ui taro-ui-vue3 -S

正解,自己创建taro项目,覆盖代码src