君陌离的博客

vuePress-theme-reco 君陌离    2018 - 2020
君陌离的博客 君陌离的博客

Choose mode

  • dark
  • auto
  • light
首页
我的作品
  • 项目橱窗
  • blog模板
分类
  • 数据库
  • CSS
  • 摘记
  • JS
  • Node
  • Vue
  • React
  • GIT
  • Promise
  • Liunx
  • Xshell
  • ajax
  • WINDOWS
  • Python
  • 随笔
  • 脚手架
  • node
  • 自动化
标签
笔记
时间线
About Me
  • 关于我
  • 赞赏
Contact
  • GitHub
  • QQ
author-avatar

君陌离

70

文章

90

标签

首页
我的作品
  • 项目橱窗
  • blog模板
分类
  • 数据库
  • CSS
  • 摘记
  • JS
  • Node
  • Vue
  • React
  • GIT
  • Promise
  • Liunx
  • Xshell
  • ajax
  • WINDOWS
  • Python
  • 随笔
  • 脚手架
  • node
  • 自动化
标签
笔记
时间线
About Me
  • 关于我
  • 赞赏
Contact
  • GitHub
  • QQ

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

vuePress-theme-reco 君陌离    2018 - 2020

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

君陌离 2020-08-07 14:24:00 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
1
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

# 全局安装或更新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

# @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
欢迎来到 您的站点名称($site.title)
看板娘