taro的安装及使用

1.Taro 项目基于 node,请确保本地已经安装8.0.0版本或8.0.0以上的版本(在cmd命令行工具里面输入 node -v)
node -v

在这里插入图片描述

2.全局安装taro开发依赖
npm install -g @tarojs/cli

在这里插入图片描述

3.使用命令创建模板项目

在项目目录里打开cmd

taro init myApp

在这里插入图片描述
进入项目文件中

cd myAPP

安装项目所需的依赖

npm install

在这里插入图片描述

npm run dev:weapp

在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/come0across/article/details/88391971
今日推荐