- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 expo,但后来需要链接第三方包,所以我使用 Expo Kit 从 expo 中弹出。现在当我尝试react-native run-android
,metro bundler 启动,但随后出现以下错误:
info Building and installing the app on the device (cd android && gradlew.bat app:installDebug)...
error Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
error spawnSync gradlew.bat ENOENT
debug Error: spawnSync gradlew.bat ENOENT
at Object.spawnSync (internal/child_process.js:981:20)
at spawnSync (child_process.js:585:24)
at execFileSync (child_process.js:613:13)
at runOnAllDevices (C:\Users\Mahmoud's Laptop\RN\ikraawarka\node_modules\@react-native-community\cli\build\commands\runAndroid\runOnAllDevices.js:58:39)
at buildAndRun (C:\Users\Mahmoud's Laptop\RN\ikraawarka\node_modules\@react-native-community\cli\build\commands\runAndroid\runAndroid.js:142:41)
at then.result (C:\Users\Mahmoud's Laptop\RN\ikraawarka\node_modules\@react-native-community\cli\build\commands\runAndroid\runAndroid.js:104:12)
at process._tickCallback (internal/process/next_tick.js:68:7)
react-native-cli: 2.0.1
react-native: 0.59.8
expo: 2.20.2
最佳答案
如果你们只是简单地被驱逐到博览会套件expo start
在您的项目目录中并在您的 Android Studio 或 XCode 中运行该项目。
关于android - Expo Eject 后,run-android 错误 : spawnSync gradlew. bat Enoent,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56981214/
我遇到了一个问题,spawnSync 通过简单的“npm install”给我 ENOENT。有人可以帮帮我吗? ======= Node 脚本 ========== var child = requ
我想在 ES6 async/await 中终止 spawnSync 进程。 (async () => { const type = 'python'; const exefile
在执行以下行时,错误“ spawnSync/bin/sh ENOBUFS ”在我的 NodeJs 应用程序中非系统地产生: child_process.execSync(`cd /tmp/myFold
在使用 execSync 执行命令(使用 sh 执行)后,我注意到以下内容: spawnSync/bin/sh ENOENT bin 当前已添加到 PATH。 有什么想法吗? 最佳答案 一般是因为你执
我认为这会很简单,但下面的操作并不像预期的那样。 我想将数据通过管道传输到一个进程,比如说(只是一个任意命令用于说明)wc,来自 Node。 docs及其他SO questions似乎表明传递 Str
我希望能够在子进程中运行时显示命令输出,然后在我的程序中处理输出。这可能吗? var result = spawnSync('neo', ['-help'], { stdio: 'inheri
我有一个 electro/node.js 应用程序,但我遇到了问题。具体来说,我需要通过更新 DOM 中的元素向用户提供有关同步生成长循环进度的一些反馈。然而,实际显示的内容在循环期间不会改变。整个循
我收到这个错误: Error: spawnSync undefined ENOENT 总是,当我在 VSCode 中保存文件时,结果编译正常。 我该如何解决这个问题? 我读了这个: How do I
该应用程序使用R代码计算两个输入整数的指数之和。输入通过node.js的child_process.spawnSync API以JSON对象的形式传递到R代码。 该应用程序是使用 Electron 打
是否有一种简单的方法来捕获 child_process spawnSync 或 execSync stdout/stderr?几年前我看到其他帖子说当时不可能,因为它是同步的。 我遇到了一个问题,我需
我想使用以下命令通过提升的 PowerShell 控制台安装 Windows 构建工具: npm install --global --production windows-build-tools 但
我同步生成一些命令并想要两件事: 将其标准输出通过管道传输到 process.stdout。 将标准输出保存到变量中。 我写了这段代码: var spawnSync = require('child_
我正在尝试从 gulp 任务运行“npm publish”。它有效,但我想处理 npm 命令本身抛出的任何错误。 如果我执行这段代码: var cmd = spawnSync('npm.cmd', [
我正在尝试在 TFS Online 的进程中构建 Windows 服务和存档文件。存档文件任务因此不明确的错误而失败。任何指示将不胜感激。 最佳答案 我今天也遇到了同样的问题。 已修复 右键单击解决方
我的ReactNative应用程序在Iphone模拟器上运行良好,但是当我尝试通过USB在我的Android移动设备上运行它时,抛出此错误。 > Task :app:installDe
我开始在 ReactXP 中编写代码,我需要让 React-Native 在 Android 设备上工作,但我无法测试它,因为在命令 react-native run-android 结束时发生错误。
首先我会发布我的代码, 我将举例说明我面临的问题: for(var i=0;i
我目前正在使用 spawnSync 和 stdio:inherit 将日志打印在我的控制台上。但是,我正在寻找将自定义日志记录到单独的文件,以防万一在生成期间出现任何故障。 我想创建一个包装器 spa
有一段时间以来,我一直在尝试达成一些目前对我来说还行不通的事情。 对于 nodejs,我喜欢运行交互式 sh-command 并在命令退出后使用 sh-command 输出。我喜欢编写一个可生成的生成
var childProcess = cp.spawnSync(command, args, { cwd: process.cwd(), env: process.env, s
我是一名优秀的程序员,十分优秀!