# 设置国内镜像
npm install -g cnpm --registry=https://registry.npm.taobao.org
npm config set registry https://registry.npm.taobao.org
npm config get registry
# 安装vue3脚手架
npm i @vue/cli -g
# 检查版本
vue --version
# 创建项目
vue create 项目名称
# 清除缓存
npm cache clean --force
# 组件安装命令
npm i axios -S
# 滚动场景插件
npm i better-scroll -S
# Vant安装
npm i vant -S
npm i unplugin-vue-components -D
前端系列-Vue3基础命令
于 2023-06-19 20:55:21 首次发布