各类脚手架安装教程(VUE React Angular)
2022年8月4日...小于 1 分钟
Vue CLI
cnpm install -g @vue/cli
#OR
yarn global add @vue/cli
创建项目
vue create hello-world
查看版本
vue --version
#OR
vue -V
create-react-app
cnpm install -g create-react-app
#创建项目
create-react-app my-app
#创建config文件夹(必须首次运行,且没有改动文件,否则报错;如果报错,git add .一下,再commit,之后运行指令)
npm run eject
全局安装或更新WePY命令行工具
cnpm install wepy-cli -g
#创建项目
wepy new myproject
# 1.7.0之后的版本使用 wepy init standard myproject 初始化项目,使用 wepy list 查看项目模板
#开启实时编译
wepy build --watch
@angular/cli(4.0)
cnpm install -g @angular/cli
#创建项目
ng new angular-demo
#启动项目
ng serve
#OR
npm start
Powered by Waline v3.3.2