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

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

Closed
hainuo opened this issue Dec 11, 2018 · 4 comments
Closed

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

hainuo opened this issue Dec 11, 2018 · 4 comments

Comments

@hainuo
Copy link

hainuo commented Dec 11, 2018

问题描述
[问题描述:站在其它人的角度尽可能清晰地、简洁地把问题描述清楚]
使用 yarn 安装了 taro 后无法执行命令

报错信息

$ taro init myApp 12/11/18 - 11:16 上午
👽 Taro v1.2.0-beta.13

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

系统信息

  • 操作系统: [e.g. Windows 10]
    Macos10.14.2 Beta (18C52a)
  • Taro 版本 [e.g. v.0.0.64]
    Taro v1.2.0-beta.13
  • Node.js 版本 [e.g. v9.0.0]
    $ node --version 1 :( 12/11/18 - 11:19 上午
    v11.3.0

应该是某些系统原因导致的,但是我不太明白该怎么去搜索关键词,还请给予指导。

@taro-bot
Copy link

taro-bot bot commented Dec 11, 2018

欢迎提交 Issue~

如果你提交的是 bug 报告,请务必遵循 Issue 模板的规范,尽量用简洁的语言描述你的问题,最好能提供一个稳定简单的复现。🙏🙏🙏

如果你的信息提供过于模糊或不足,或者已经其他 issue 已经存在相关内容,你的 issue 有可能会被关闭。

Good luck and happy coding~

@hainuo hainuo closed this as completed Dec 11, 2018
@hainuo
Copy link
Author

hainuo commented Dec 11, 2018

#699

@hainuo
Copy link
Author

hainuo commented Dec 11, 2018

我的解决办法 删除 yarn 删除 nodejs 然后重新使用 brew install 安装最新版本nodejs 然后使用 npm 安装 yarn 之后一切正常 , 感觉是因为 nodejs 升级和 yarn 升级不一致 导致 npm 版本不一致 导致安装后 符号链接指向的 node_modules 目录有问题

@RainyNight9
Copy link

你这么操作,对电脑上其他项目有影响吗?其他项目会依赖这个node 和 yarn 啊

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