$ npm install -g @tarojs/cli
$ taro init myApp
// If the installation fails to perform manual $ npm install
// small micro-channel preview compiled and packaged (remove --watch will not listen modify files, and the code will be compressed package // the Yarn $ dev the Yarn: weapp $ Build the Yarn: weapp // npm Script $ npm RUN dev: weapp $ npm RUN Build: weapp // global installed only $ Taro Build --type weapp --watch $ Taro Build --type weapp // NPX users can also use the $ NPX Taro Build --type weapp --watch $ NPX taro build --type weapp
// H5 mode, without a specific developer tools, you can preview it in the browser perform the following command after completing // the Yarn $ dev the Yarn: H5 // npm Script $ npm RUN dev: H5 // only global installation Taro Build --type H5 $ - Watch // NPX users can also use the $ npx taro build --type h5 --watch