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

error: taro-build(1) does not exist, try --help #1391

Closed
hqwlkj opened this issue Dec 6, 2018 · 3 comments
Closed

error: taro-build(1) does not exist, try --help #1391

hqwlkj opened this issue Dec 6, 2018 · 3 comments

Comments

@hqwlkj
Copy link
Contributor

hqwlkj commented Dec 6, 2018

问题描述
[问题描述:站在其它人的角度尽可能清晰地、简洁地把问题描述清楚]
在项目中执行 : yarn dev:weapp 或者 npm run dev:weapp 都会出现 error: taro-build(1) does not exist, try --help 错误提示。
复现步骤
[复现问题的步骤]

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

[或者可以直接贴源代码,能贴文字就不要截图]

// 这里可以贴代码
npm run dev:weapp 

or 
yarn dev:weapp

期望行为
[这里请用简洁清晰的语言描述你期望的行为]

报错信息

taro build --type weapp "--watch"

👽 Taro v1.2.0-beta.9

error: taro-build(1) does not exist, try --help
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! Test@1.0.0 build:weapp: taro build --type weapp "--watch"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the Test@1.0.0 build:weapp script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/yanghc/.npm/_logs/2018-12-06T03_19_14_036Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! Test@1.0.0 dev:weapp: npm run build:weapp -- --watch
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the Test@1.0.0 dev:weapp script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

系统信息

  • 操作系统: macOS Mojave
  • Taro 版本 Taro v1.2.0-beta.9
  • Node.js 版本 v10.12.0
  • 报错平台 h5, weapp
@taro-bot
Copy link

taro-bot bot commented Dec 6, 2018

欢迎提交 Issue~

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

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

Good luck and happy coding~

@luckyadam
Copy link
Member

换 npm 或者 cnpm 把 cli 再装一下

@luckyadam
Copy link
Member

Duplicate of #699

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