Vue学习(二)--项目搭建之使用IDEA创建vue项目

一.环境部署

1.安装node

新版本:https://nodejs.org/en/download/
版本选择:https://npm.taobao.org/mirrors/node/

2.通过cmd全局安装yarn

npm i yarn -g

3.修改yarn包的下载地址

yarn config set registry https://registry.npm.taobao.org

4.yarn添加环境变量

设置系统环境变量
目录:C:UsersAdministratorAppDataLocalYarnin

二.创建Vue项目

1.安装脚手架

yarn global add @vue/cli

2.查看版本(用于检查是否成功安装)

vue -V

3.命令行方式创建项目

vue create myproject

4.配置参数设置

  空格键:选择或者不选择;
  上下键:上下移动
  回车键:确定

三.IDEA安装及相关插件

1.安装IDEA

2.相关插件安装

File -> Settings -> Plugins

**中文语言包**:Chinese(Simplified) Language Pack
**Vue语法提示**:Vue.js
**图标插件下载**:Atom Material Icons
**主题插件下载**:Material Theme UI Lite
**粒子效果插件**:Power Mode II

3.重启IDEA,并打开VUE项目

4.终端输入yarn serve 启动项目

原文地址:https://www.cnblogs.com/rongzhen/p/15083099.html