📢 公告
微信公众号二维码

欢迎大家关注我的公众号

Skip to content
  • Yarn
  • Vue 3
  • Vue Router 4
  • Pinia
  • Axios
  • Element Plus
  • Eslint
  • Prettier
bash
$ yarn create vite


 Project name: ... simple-client
 Select a framework: » Vue
 Select a variant: » JavaScript



$ cd simple-client
$ yarn
$ yarn dev

vite.config.js最初内容:

js
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'

// https://vitejs.dev/config/
export default defineConfig({
  plugins: [vue()],
})
bash
$ yarn add vue-router@4

$ yarn add pinia

$ yarn add axios

$ yarn add element-plus

$ yarn add unplugin-vue-components unplugin-auto-import -D

https://juejin.cn/post/7156957907890733063


npm的配置文件为用户根目录下的:~/.npmrc(Windows路径为:C:\Users<UserName>.npmrc),您可以点击此处直接下载配置文件,或者运行如下命令设置:

npm config set registry https://repo.huaweicloud.com/repository/npm/ npm cache clean -f