搭建VUE项目

安装nodejs / nvm

https://www.mintimate.cn/2021/07/26/nvmNode/
https://nvm.uihtm.com/

https://blog.csdn.net/zhouyan8603/article/details/109039732
https://blog.csdn.net/qq_52855464/article/details/127600132

安装git

https://git-scm.com/book/zh/v2/起步-安装-Git
https://registry.npmmirror.com/binary.html?path=git-for-windows/v2.39.2.windows.1/


安装vue-cli 开发脚手架

npm install -g @vue/cli
https://cli.vuejs.org/zh/guide/installation.html

安装vite

npm create vite@latest
npm create vite@latest my-vue-app --template vue
https://cn.vitejs.dev/guide/
https://juejin.cn/post/7078250800304095245


创建

vite:

  • npm create vue@3
  • npm create vue@2
  • npm create vite@latest
    cli:
  • vue create xxx

插件

引入vuex

npm install vuex@next --save

引入router

npm install vue-router@4

引入axios

npm install axios

引入elementPlus

npm install element-plus --save

elementPlus的图标

https://element-plus.gitee.io/zh-CN/component/icon.html

安装和配置less

https://blog.csdn.net/u014678583/article/details/124008200


webpack

https://www.webpackjs.com/guides/installation/

参考:
https://blog.csdn.net/ycf921244819/article/details/121252836

posted @ 2023-03-09 12:32  ni好哇  阅读(47)  评论(0)    收藏  举报