相关疑难解决方法(0)

在 Android 上 React Native:无法运行程序“节点”:错误=2,没有这样的文件或目录

iOS 版本运行良好,但在我的 Mac 上运行 Android Studio 时出现以下 Gradle Build 错误(解释):

:ReactNative:Running ‘[node, -e, console.log(require(‘react-native/cli’).bin);]’ command failed.

- Where:
Script ‘/Users/…/Desktop/…/node_modules/@react-native-community/cli-platform-android/native_modules.gradle’ line: 154

- What went wrong:
A problem occurred evaluating script.
> Cannot run program “node”: error=2, No such file or directory

Caused by: java.io.IOException: Cannot run program “node”: error=2, No such file or directory
Run Code Online (Sandbox Code Playgroud)

我尝试了很多东西:

android node.js react-native

18
推荐指数
14
解决办法
1万
查看次数

标签 统计

android ×1

node.js ×1

react-native ×1