Options:
-V, --version output the version number
-h, --help output usage information
Commands:
init generate a new project from a template
list list available official templates
build prototype a new project
create (for v3 warning only)
help [cmd] display help for [cmd]
1
2
3
4
5
6
7
8
9
10
11
12
13
如图,安装成功,卸载脚手架命令:npm uninstall vue-cli -g。
二、创建vue项目
进入目录,命令行输入vue init webpack-simple vuetest
D:\java\android>vue init webpack-simple vuetest
'git' �����ڲ����ⲿ���Ҳ���ǿ����еij���
�������ļ�
? Project name vuetest
? Project description A Vue.js project
? Author
? License MIT
? Use sass? Yes
vue-cli · Generated "vuetest".
To get started:
cd vuetest
npm install
npm run dev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
此时在目录下创建了名为vuetest的项目: