打印/下载
Linux
Windows
MacOS
Vue3项目

安装Git

pacman -S git

安装NodeJS

pacman -S nodejs

安装Yarn

pacman -S yarn
# 查看
yarn -v

安装Vue3

yarn cache clean
yarn global add @vue/cli
# 查看
vue -V

安装Git

  • Git
  • 安装: 64位版 > 重启系统
  • VsCode: "ctrl+`" > "终端" > "powershell" > "选择默认 shell" > "Git Bash" > 重启
  • 终端输入: "cmd" 和 "bash" 可相互切换

安装NodeJS

  • Node.js
  • 安装: "node-v14.15.1-x64.msi" 到 "D:\server\nodejs"
  • 查看: "node –v"

安装Vue3

npm install -g cnpm
cnpm install -g @vue/cli

yarn cache clean
yarn global add @vue/cli
# 查看
vue -V

安装Yarn

npm install -g yarn
# 查看
yarn -v

安装Git

  • 终端: git

安装NodeJS

安装Yarn

sudo npm install -g yarn
# 查看
yarn -v

安装Vue3

sudo npm install -g cnpm
sudo cnpm install -g @vue/cli
# 查看
vue -V

创建项目( v3 )

vue create demo
  • ◉ Choose Vue version
  • ◉ Babel
  • ◯ TypeScript
  • ◯ Progressive Web App (PWA) Support
  • ◉ Router
  • ◉ Vuex
  • ◯ CSS Pre-processors
  • ◉ Linter / Formatter
  • ◯ Unit Testing
  • ◯ E2E Testing

Use history mode for router? Yes
Pick a linter / formatter config: Basic
Pick additional lint features: Lint on save
Where do you prefer placing config for Babel, ESLint, etc.? In package.json
Save this as a preset for future projects? Yes

{{copy}}