使用vite搭建項目
npm init vite-app <project-name>
cd <project-name>
npm install
npm run dev
使用 cli搭建項目
vue --version
npm install -g @vue/cli
vue create vuetest
cd vuetest
npm run serve
配置npm淘寶鏡像 npm config set registry https://registry.npm.taobao.org
對比vue2用腳手架搭建項目 區別就是版本不同
npm install -g @vue/cli
vue create vuetest
vue run serve