创建taro项目

1.全局安装taro

yarn global add @tarojs/cli

2.初始化项目

npx @tarojs/cli init project

3.运行

h5端运行命令

yarn dev:h5

自动打开 localhost:10086/#/pages/index/index

微信小程序端运行命令

yarn dev:weapp
原文地址:https://www.cnblogs.com/luguankun/p/13912545.html