1. 当前位置:网站首页 > Vue

Vue3初始化项目


新建Vue3项目(TypeScript)

安装node.js

http://nodejs.cn/download/ 根据对应版本下载(配置环境变量)

在终端中输入 node -v
出现以下代表成功
C:\Users\liuyang>node -v
v16.15.1

安装Vite 及yarn

npm install -g yarn
npm install vite –D

新建项目

yarn global add @vue/cli
yarn create @vitejs/app <project-name> --template=vue-ts
yarn create @vitejs/app item --template=vue-ts

安装各类包

* yarn add node-sass sass-loader sass
* yarn add normalize.css
* npm i --save-dev @types/node
* yarn add element-plus
* yarn add @element-plus/icons
* yarn add vuex@next --save
* yarn add vue-native-websocket-vue3
* yarn add vue-router@4
* yarn add echarts --save

本文最后更新于2022-2-11,已超过 3个月没有更新,如果文章内容或图片资源失效,请留言反馈,我们会及时处理,谢谢!
版权说明

本文地址:http://www.liuyangdeboke.cn/?post=24
未标注转载均为本站远程,转载请注明文章出处:

发表评论

联系我们

在线咨询:点击这里给我发消息

微信号:17721538135

工作日:9:00-23:00,节假日休息

扫码关注