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

Unable to run the commandline:Cannot run program "react-native" (in directory "xxx"): error=2, No such file or directory #23

Closed
clzd0792 opened this issue Feb 6, 2018 · 3 comments

Comments

@clzd0792
Copy link

clzd0792 commented Feb 6, 2018

系统是 macOS High Sierra,AS 和 Idea 使用插件都报这个错(包括adb、npm、yarn等都报错)。
本来一切都 ok 的,初步怀疑是 chsh 切换 shell 为 zsh 后出现问题,但是切换回 bash 后问题依旧。
手动使用系统的终端输入命令都是可以正常使用的。请大佬帮忙看看是什么问题。

@clzd0792
Copy link
Author

clzd0792 commented Feb 7, 2018

😂,刚才试了下又恢复正常了。昨天是有重启试过的。不知是什么原因。

@clzd0792 clzd0792 closed this as completed Feb 7, 2018
@beansoft
Copy link
Owner

beansoft commented Feb 8, 2018

取命令实际路径的实现依赖的是IDEA的库, 它们有个python脚本读取系统变量然后再去找可执行文件位置, 可能IDEA这块偶尔不稳定.

@crobinson42
Copy link

Restarting Webstorm usually solves this issue - I find it's typically related to running Android Studio at the same time and the adb server not matching so a new server is started and this causes the issues to appear in Webstorm.

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

3 participants