profile
viewpoint

Ask questionsError while executing command 'react-native.cmd run-android --no-packager' (error code 101)

Actual Behavior

  1. Error while executing command 'react-native.cmd run-android --no-packager' (error code 101)

Expected Behavior

  1. Start Debugging

Software versions

  • React-Native VS Code extension version: 0.9.3
  • VSCode version: 1.34.0
  • OS platform and version: Win 10
  • NodeJS version: 10.13.0
  • react-native-cli: 2.0.1
  • react-native: 0.59.8
  • Expo SDK version (include if relevant):

Outputs (Include if relevant)

  • Output of the Debug Console (View -> Toggle Debug Console):

OS: win32 x64 Adapter node: v10.2.0 x64 vscode-chrome-debug-core: 6.7.46 Could not debug. Error while executing command 'react-native.cmd run-android --no-packager': Error while executing command 'react-native.cmd run-android --no-packager' (error code 101)

PASTE OUTPUT HERE

- [Info] Starting Packager

┌──────────────────────────────────────────────────────────────────────────────┐
│                                                                              │
│  Running Metro Bundler on port 8081.                                         │
│                                                                              │
│  Keep Metro running while developing on any JS projects. Feel free to        │
│  close this tab and run your own Metro instance if you prefer.               │
│                                                                              │
│  https://github.com/facebook/react-native                                    │
│                                                                              │
└──────────────────────────────────────────────────────────────────────────────┘

Looking for JS files in
   d:\RnD\Android\React-Native\kanimenApp 

[Info] Packager started.

[Info] Prewarming bundle cache. This may take a while ...

[Info] About to get: http://localhost:8081/index.bundle?platform=android

Loading dependency graph, done.
[Warning] The Bundle Cache was prewarmed.

[Info] Building and running application.

 BUNDLE  [android, dev] ./index.js ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ 100.0% (572/572), done.

[Error] Error: Error while executing command 'react-native.cmd run-android --no-packager': Error while executing command 'react-native.cmd run-android --no-packager' (error code 101)


PASTE OUTPUT HERE

- Output of the Developer Tools console (Help -> Toggle Developer Tools -> Select Console tab):

[Extension Host] debugger listening on port 18914
workbench.main.js:238 [Extension Host] Git installation not found.
t.log @ workbench.main.js:238
workbench.main.js:238 [Extension Host] (node:14396) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
t.log @ workbench.main.js:238
workbench.main.js:238 [Extension Host] (node:14396) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
t.log @ workbench.main.js:238

PASTE OUTPUT HERE

microsoft/vscode-react-native

Answer questions SounD120

Hi @balagopinath and thanks for reaching us. Could you please also add output from View -> Toggle Output -> Select React Native: Run android?

useful!

Related questions

[Error] TypeError: ConfigUtils(...).configFilenameAsync is not a function hot 134
Can't attach packager for debugging hot 106
/bin/sh: 1: adb: not found on Linux hot 55
Cannot bind listener: operation not permitted hot 49
Error while executing command 'react-native run-ios --simulator --no-packager' hot 39
Error while executing command 'react-native.cmd run-android --no-packager': Error while executing command 'react-native.cmd run-android --no-packager' (error code 101) hot 33
Cannot read property 'getCurrentUserAsync' of undefined hot 26
Cannot bind listener: operation not permitted hot 23
Current workspace does not contain React Native projects hot 22
Unable to resolve module `../Components/AccessibilityInfo/AccessibilityInfo` message hot 21
Version 0.13 breaks running packager from VS Code from different folder hot 15
Could not debug - error code 604 hot 13
Not all success patterns were matched. (error code 712) hot 12
Current workspace does not contain React Native projects hot 11
Expo app doesn't connect to packager hot 10
Github User Rank List