Ask questionsError: spawn node_modules/hermesvm/osx-bin/hermes ENOENT

  1. At First I clean my build directory and again build: cd android & ./gradlew clean

./gradlew assembleStagingRelease

  1. Then, When I use command to deploy code-push, with appcenter codepush release-react -a <>/<> -m -d Release

I get this error:

node_modules/hermesvm/osx-bin/hermes -emit-binary -out /var/folders/3q/drghm7cs7gzc1c115xzbyg_00000gn/T/code-push2020524-82974-bg9ddv.b1c1l/CodePush/ /var/folders/3q/drghm7cs7gzc1c115xzbyg_00000gn/T/code-push2020524-82974-bg9ddv.b1c1l/CodePush/ -w
      throw er; // Unhandled 'error' event

Error: spawn node_modules/hermesvm/osx-bin/hermes ENOENT
    at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
    at onErrorNT (internal/child_process.js:415:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)
Emitted 'error' event at:
    at Process.ChildProcess._handle.onexit (internal/child_process.js:246:12)
    at onErrorNT (internal/child_process.js:415:16)
    at process._tickCallback (internal/process/next_tick.js:63:19)


  • react-native-code-push version: "^6.2.0",
  • react-native version: "0.63.0-rc.1", "hermes-engine": "^0.5.0",
  • iOS/Android/Windows version: MacOS Mojave v10.14.6

Answer questions Sakarisson

Hey everyone. Thanks to @jmarkstevens for clear steps on how to temporarily fix this issue.

For full yarn install integration, feel free to follow these steps:

  1. Setup the awesome patch-package (
  2. Create a /patches directory and add a new file called appcenter-cli+2.6.2.patch (or whatever version of appcenter-cli you're using) with the following contents:
diff --git a/node_modules/appcenter-cli/dist/commands/codepush/lib/react-native-utils.js b/node_modules/appcenter-cli/dist/commands/codepush/lib/react-native-utils.js
index 228e9ea..0aeed76 100644
--- a/node_modules/appcenter-cli/dist/commands/codepush/lib/react-native-utils.js
+++ b/node_modules/appcenter-cli/dist/commands/codepush/lib/react-native-utils.js
@@ -358,7 +358,7 @@ function getHermesOSExe() {
         case "win32":
             return "hermes.exe";
-            return "hermes";
+            return "hermesc";
 function getHermesCommand() {

The fix should now work throughout your ecosystem 🥳


Related questions

[Bug] Xcode 11 support hot 2
Use of undeclared identifier &#39;CodePush - react-native-code-push hot 2
Unable to resolve module &#39;./RestartManager&#39; - react-native-code-push hot 2
Failed to pod install with RN0.60.5 hot 2
what it means? `An update is available, but it is being ignored due to having been previously rolled back` hot 1
Unable to load script from assets ''. hot 1
RN0.60+ code-push Update failed,[CodePush] 404 hot 1
'CodePush.h' file not found hot 1
Missing required property: deployment_key hot 1
Task :app:generateBundledResourcesHashRelease FAILED hot 1
Deprecated "rnpm" in React Native v0.60+ hot 1
Can&#39;t build: &#39;React/RCTEventEmitter.h&#39; file not found - react-native-code-push hot 1
【iOS】Unable to find or read "package.json" in the CWD. The "release-react" command must be executed in a React Native project folder. hot 1
[iOS] Duplicate symbols when using RNZipArchive in Cocoapods hot 1
Rollback on app restart after changes being applied correctly. hot 1
Github User Rank List