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

使用 npx @tarojs/cli init myApp 创建项目,通过 npx taro build --type weapp --watch 命令执行出现找不到命令:taro #1854

Closed
nicedudu opened this issue Jan 8, 2019 · 7 comments
Assignees

Comments

@nicedudu
Copy link

nicedudu commented Jan 8, 2019

问题描述
使用 npx @tarojs/cli init myApp 创建项目,通过 npx taro build --type weapp --watch 命令执行出现找不到命令:taro

复现步骤
[复现问题的步骤]

  1. npx @tarojs/cli init myApp
  2. npx taro build --type weapp --watch

报错信息

npx taro build --type weapp --watch

npx: 301 安装成功,用时 9.222 秒
找不到命令:taro
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] npx:weapp: `npx taro build --type weapp --watch`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] npx:weapp script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

系统信息

  • 操作系统: [e.g. macOS]
  • Taro 版本 [e.g. v.1.2.4]
  • Node.js 版本 [e.g. v10.14.2]
  • 报错平台 [weapp]

补充信息

  1. 采用Typescript + Mobx 方式
  2. 之前采用 taro 版本为 1.1.4 时可以采用 npx 方式执行。
@taro-bot
Copy link

taro-bot bot commented Jan 8, 2019

欢迎提交 Issue~

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

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

Good luck and happy coding~

@Pines-Cheng Pines-Cheng added the CLI label Jan 9, 2019
@taro-bot
Copy link

taro-bot bot commented Jan 9, 2019

CC @luckyadam

@tinn2015
Copy link

hi, 这问题解决了吗?求解!

@waiwaic
Copy link

waiwaic commented Nov 26, 2019

请使用npx @tarojs/cli build --type weapp --watch

@Garfield550
Copy link
Collaborator

如楼上所说。

@Garfield550
Copy link
Collaborator

Garfield550 commented Nov 26, 2019

npx taro 用的是这个包 https://www.npmjs.com/package/taro
不是 Taro CLI

@taro-bot
Copy link

taro-bot bot commented Nov 26, 2019

Hello~

您的问题楼上已经有了确切的回答,如果没有更多的问题这个 issue 将在 15 天后被自动关闭。

如果您在这 15 天中更新更多信息自动关闭的流程会自动取消,如有其他问题也可以发起新的 Issue。

Good luck and happy coding~

@taro-bot taro-bot bot removed the to be closed label Dec 11, 2019
@taro-bot taro-bot bot closed this as completed Dec 11, 2019
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

6 participants