一 安装npm
nodejs的官网下载npm

二 npm安装vue
npm install vue@next

三 安装vue/cli
npm install -g @vue/cli@next

然后在 Vue 项目运行:
vue upgrade --next

四 创建项目
vue init webpack wisq
cd desktop
cd wisq

vue create 命令(未尝试)
vue create wisq

五 运行项目
npm run dev

六 项目目录说明
build 构建脚本目录
config 构建配置目录
node_modules 依赖的node工具包目录
dist 打包后的目录
src 源码目录

assets    资源目录
components    组件目录
route    路由
App.vue    页面级Vue组件
main.js    页面入口js文件

static 静态文件目录
test 测试文件目录
index.html 入口页面
package.json 项目描述文件
vue.config.js Vue3默认空白,需要新建

六 打包项目
npm run build

https://blog.csdn.net/lgxzzz/article/details/121802655
https://blog.csdn.net/m0_46613478/article/details/106000199/

标签: none

评论已关闭