1. install
npm install -g @vue/cli
# OR
yarn global add @vue/cli
2. create project
vue create first-vue-app
3. Meet vue-cli
1. show help
vue -h
#OR
vue --help
#OR
vue

vue help
2. show vue-cli
version
vue -V
#OR
vue - version
3. show create
command help info
vue create -h
#OR
vue create --help

vue create help
4. create first vue app
#USAGE: vue create [options] <app-name>
vue create first-vue-app
Warring: <app-name> can not be upper case, only lower case name and - can be used for <app-name>
app-name can only be lower case and `-`
4. Run first vue project
yarn serve
#OR
vue-cil-service serve

run successfully
1. first error

image.png
网友评论