One minute Taro built environment

Taro set  React  multiport syntax specification development solutions. Use Taro, only write a code, and then build tool by Taro, the source code can be compiled separately to run at different ends (WeChat applet, H5, App end, etc.) code. Meanwhile Taro also provides syntax detection and automatic completion etc. out of the box. Next we install the first global

npm install -g  @tarojs/cli
cnpm install -g  @tarojs/cli
yarn global add @tarojs/cli

I recommend using yarn installation, the new project

yarn init demo1

After the successful installation directly 

yarn dev:h5

Guess you like

Origin www.cnblogs.com/chen-cheng/p/12176963.html