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全局安装以后 taro不能识别指令 #3323

Closed
wangdan3024 opened this issue Jun 5, 2019 · 7 comments
Closed

taro全局安装以后 taro不能识别指令 #3323

wangdan3024 opened this issue Jun 5, 2019 · 7 comments
Labels
duplicate This issue or pull request already exists

Comments

@wangdan3024
Copy link

Feature Request 请提到 FeatHub
问题描述
[问题描述:taro全局安装以后 taro不能识别指令

复现步骤
[复现问题的步骤]
1,使用npm 安装taro 安装成功以后使用taro报不是内部或外部指令
2,改用yarn安装出现同样的问题
3,两种方法安装然后taro -V 都是taro不是内部或外部指令
4,使用 npm info taro 可以看到版本信息

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

// 这里可以贴代码

// ```js
// 代码放这里(前后的 "```" 有助 Mardown 整理代码格式和加入代码高亮)
// ```

// 提供完整可复现的代码和整理好代码格式,有助于我们快速定位问题,节省你我时间。
// 代码提供不全或代码格式混乱的 issues 【有可能被忽略】,烦请各位注意。

期望行为
希望告诉怎么解决

报错信息
taro不是内部或外部命令

系统信息

Taro v1.2 及以上版本已添加 taro info 命令,方便大家查看系统及依赖信息,运行该命令后将结果贴下面即可。

  • 操作系统: [e.g. Windows 10]
  • Taro 版本 [e.g. v.0.7]
  • Node.js 版本 [e.g. v10.16.0]
  • 报错平台 [命令行工具]

补充信息
[可选]

@taro-bot
Copy link

taro-bot bot commented Jun 5, 2019

欢迎提交 Issue~

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

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

Good luck and happy coding~

@Garfield550
Copy link
Collaborator

Dup #699

@wangdan3024
Copy link
Author

Dup #699

最开始我就是用的npm安装的然后安装出现问题以后再用yarn安装的然后出现了同一个问题

@Garfield550
Copy link
Collaborator

Dup #699

最开始我就是用的npm安装的然后安装出现问题以后再用yarn安装的然后出现了同一个问题

这可能是 Vendor 级的问题,你再等等吧。先用 npx @tarojs/cli init 吧。

@wangdan3024
Copy link
Author

Dup #699

最开始我就是用的npm安装的然后安装出现问题以后再用yarn安装的然后出现了同一个问题

这可能是 Vendor 级的问题,你再等等吧。先用 npx @tarojs/cli init 吧。

我先试试看行不行 连taro-V都报错简直让人崩溃

@yuche yuche closed this as completed Jun 6, 2019
@yuche yuche added the duplicate This issue or pull request already exists label Jun 6, 2019
@StephenOo
Copy link
Contributor

遇到了同样的问题,请问如何解决的

@wangdan3024
Copy link
Author

其实具体原因也没找出来 只知道是依赖问题,所以从同事那边拷贝了依赖配置文件 然后在安装才解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants