forked from loveky/Blog
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
最近是打算做一个东西,正好可能会与Taro有关系,赶紧来了解一下~
不过遇到了一些问题,这里跟进下。
运行环境:MAC。
安装:
- 使用yarn安装:yarn global add @tarojs/cli;安装失败?试试sudo?
- 使用taro:taro init xx;初始化失败?zsh:command not found:taro?
- 遇到2的问题,需要找到.bash_profile文件下是否配置了PATH路径,方法如下:
先找到.bash_profile,/user/xxx/ 下找,没有?创建它; - #taro add
export TARO=/usr/local/lib/node_modules/@tarojs/cli/bin/taro
export PATH=$TARO:$PATH
其中 /usr/local/lib/node_modules/@tarojs/cli/bin/taro 这个是taro的执行路径;

- 搞定后,保存。这时候再去执行taro -V,即可。
Metadata
Metadata
Assignees
Labels
No labels