ReactNative:Running ‘[node, -e, console.log(require(‘react-native/cli’).bin);]’ command failed.
Posted iOSTianNan
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ReactNative:Running ‘[node, -e, console.log(require(‘react-native/cli’).bin);]’ command failed.相关的知识,希望对你有一定的参考价值。
报错
Cannot run program "node": error=2, No such file or directory
查看日志发现:
ReactNative:Running ‘[node, -e, console.log(require(‘react-native/cli’).bin);]’ command failed.
我这边的最终解决办法
1.关掉androidStudio
2. 执行
open -a /Applications/Android\\ Studio.app
以上是关于ReactNative:Running ‘[node, -e, console.log(require(‘react-native/cli’).bin);]’ command failed.的主要内容,如果未能解决你的问题,请参考以下文章