# Vue CLI
cnpm install -g @vue/cli
#OR
yarn global add @vue/cli
创建项目
vue create hello-world
查看版本
vue --version
#OR
vue -V
1
2
3
4
5
6
7
8
9
2
3
4
5
6
7
8
9
# create-react-app
cnpm install -g create-react-app
#创建项目
create-react-app my-app
#创建config文件夹(必须首次运行,且没有改动文件,否则报错;如果报错,git add .一下,再commit,之后运行指令)
npm run eject
1
2
3
4
5
2
3
4
5
# 全局安装或更新WePY命令行工具
cnpm install wepy-cli -g
#创建项目
wepy new myproject
# 1.7.0之后的版本使用 wepy init standard myproject 初始化项目,使用 wepy list 查看项目模板
#开启实时编译
wepy build --watch
1
2
3
4
5
6
2
3
4
5
6
# @angular/cli(4.0)
cnpm install -g @angular/cli
#创建项目
ng new angular-demo
#启动项目
ng serve
#OR
npm start
1
2
3
4
5
6
7
2
3
4
5
6
7