1- 安装

  1. cnpm install -g @tarojs/cli
  2. yarn global add @tarojs/cli

2- 创建项目

  1. // 打开对应文件夹 使用命令创建模板项目
  2. taro init myApp

1-1  安装及使用 - 图1

3- 安装依赖

  1. yarn
  2. cnpm i

4- 运行

  1. // 微信小程序
  2. yarn dev:weapp
  3. yarn build:weapp