Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] taro-init(1) does not exist #328

Closed
liuzhuan opened this issue Jul 16, 2018 · 2 comments
Closed

[bug] taro-init(1) does not exist #328

liuzhuan opened this issue Jul 16, 2018 · 2 comments

Comments

@liuzhuan
Copy link

liuzhuan commented Jul 16, 2018

问题描述

在 macOS 上使用 yarn 全局安装 taro,运行 taro init myApp,报错:

👽 Taro v0.0.69

  taro-init(1) does not exist, try --help

复现步骤

  1. 全局安装 taro yarn global add @tarojs/cli
yarn global v0.15.1
warning No license field
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 📃  Building fresh packages...
success Installed @tarojs/[email protected] with binaries:
      - taro
✨  Done in 26.50s.
  1. 创建空白文件夹 mkdir -p taro-in-action
  2. 进入文件夹 cd taro-in-action
  3. 创建 taro 工程模板 taro init myApp

期望行为

正常创建 Taro 项目模板。

报错信息

👽 Taro v0.0.69

  taro-init(1) does not exist, try --help

系统信息

  • 操作系统: macOS High Sierra 10.13.5
  • Taro 版本: v0.0.69
  • Node.js 版本: v9.3.0
@Pines-Cheng
Copy link
Contributor

重新安装一下 @tarojs/cli 试试?

@liuzhuan
Copy link
Author

@Pines-Cheng

重新安装了 v0.0.70 ,就可以了。

感谢~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants