Skip to content

Instantly share code, notes, and snippets.

@weex
Created December 27, 2021 00:15
Show Gist options
  • Save weex/89953dcc940738d928389ae0cb368c5e to your computer and use it in GitHub Desktop.
Save weex/89953dcc940738d928389ae0cb368c5e to your computer and use it in GitHub Desktop.
after installing android studio
$ npx react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
error Failed to run jetifier.
Error: Cannot find module 'signal-exit'
Require stack:
- /Users/dsterry/code/viro-starter/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js
- /Users/dsterry/code/viro-starter/node_modules/@react-native-community/cli-platform-android/build/commands/runAndroid/index.js
- /Users/dsterry/code/viro-starter/node_modules/@react-native-community/cli-platform-android/build/commands/index.js
- /Users/dsterry/code/viro-starter/node_modules/@react-native-community/cli-platform-android/build/index.js
- /Users/dsterry/code/viro-starter/node_modules/react-native/react-native.config.js
- /Users/dsterry/code/viro-starter/node_modules/cosmiconfig/node_modules/import-fresh/index.js
- /Users/dsterry/code/viro-starter/node_modules/cosmiconfig/dist/loaders.js
- /Users/dsterry/code/viro-starter/node_modules/cosmiconfig/dist/createExplorer.js
- /Users/dsterry/code/viro-starter/node_modules/cosmiconfig/dist/index.js
- /Users/dsterry/code/viro-starter/node_modules/react-native/node_modules/@react-native-community/cli/build/tools/config/readConfigFromDisk.js
- /Users/dsterry/code/viro-starter/node_modules/react-native/node_modules/@react-native-community/cli/build/tools/config/index.js
- /Users/dsterry/code/viro-starter/node_modules/react-native/node_modules/@react-native-community/cli/build/commands/install/install.js
- /Users/dsterry/code/viro-starter/node_modules/react-native/node_modules/@react-native-community/cli/build/commands/index.js
- /Users/dsterry/code/viro-starter/node_modules/react-native/node_modules/@react-native-community/cli/build/index.js
- /Users/dsterry/code/viro-starter/node_modules/react-native/cli.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/dsterry/code/viro-starter/node_modules/@react-native-community/cli-platform-android/node_modules/execa/index.js:10:16)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
$ npx react-native info
info Fetching system and libraries information...
System:
   OS: macOS 11.6.1
   CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
   Memory: 864.83 MB / 16.00 GB
   Shell: 3.2.57 - /bin/bash
 Binaries:
   Node: 16.13.0 - ~/.nvm/versions/node/v16.13.0/bin/node
   Yarn: 1.22.17 - /usr/local/bin/yarn
   npm: 8.1.0 - ~/.nvm/versions/node/v16.13.0/bin/npm
   Watchman: 2021.12.20.00 - /usr/local/bin/watchman
 Managers:
   CocoaPods: 1.11.2 - /Users/dsterry/.rbenv/shims/pod
 SDKs:
   iOS SDK:
     Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
   Android SDK:
     API Levels: 29, 32
     Build Tools: 29.0.2, 32.0.0
     System Images: android-29 | Intel x86 Atom_64, android-29 | Google APIs Intel x86 Atom
     Android NDK: Not Found
 IDEs:
   Android Studio: 2020.3 AI-203.7717.56.2031.7935034
   Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild
 Languages:
   Java: 1.8.0_292 - /usr/bin/javac
 npmPackages:
   @react-native-community/cli: Not Found
   react: 17.0.2 => 17.0.2 
   react-native: 0.65.1 => 0.65.1 
   react-native-macos: Not Found
 npmGlobalPackages:
   *react-native*: Not Found
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment