跳至主要內容

各类脚手架安装教程(VUE React Angular)

Mr.Song2020年8月7日...小于 1 分钟其他VUE React Angular

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
温馨提示
🚀热烈欢迎各位小伙伴🚀

Your primary language is en-US, do you want to switch to it?

您的首选语言是 en-US,是否切换到该语言?