Error whle running a native mobile app in local host

0
Hi, I get the following error when I try to run a native mobile app on local host. Can you please tell me what is wrong? C:\Program Files\Mendix\8.18.1.13528\modeler\tools\node\node.exe "C:\Program Files\Mendix\8.18.1.13528\modeler\tools\node\node_modules\react-native\local-cli\cli.js" start --port "8083" --config "D:\Mendix Projects\J610-MobileAPP\deployment\native\metro.config.json"  warn Failed to chmod xsel: EPERM: operation not permitted, chmod 'C:\Program Files\Mendix\8.18.1.13528\modeler\tools\node\node_modules\react-native\node_modules\@react-native-community\cli\build\commands\server\external\xsel' ┌──────────────────────────────────────────────────────────────────────────────┐ │                                                                              â”‚ │  Running Metro Bundler on port 8083.                                         │ │                                                                              â”‚ │  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                                    â”‚ │                                                                              â”‚ └──────────────────────────────────────────────────────────────────────────────┘ error listen EADDRINUSE: address already in use :::8083. Run CLI with --verbose flag for more details. Error: listen EADDRINUSE: address already in use :::8083     at Server.setupListenHandle [as _listen2] (net.js:1279:14)     at listenInCluster (net.js:1327:12)     at Server.listen (net.js:1414:7)     at Promise (C:\Program Files\Mendix\8.18.1.13528\modeler\tools\node\node_modules\metro\src\index.js:257:20)     at new Promise (<anonymous>)     at Object.<anonymous> (C:\Program Files\Mendix\8.18.1.13528\modeler\tools\node\node_modules\metro\src\index.js:256:14)     at Generator.next (<anonymous>)     at asyncGeneratorStep (C:\Program Files\Mendix\8.18.1.13528\modeler\tools\node\node_modules\metro\src\index.js:46:24)     at _next (C:\Program Files\Mendix\8.18.1.13528\modeler\tools\node\node_modules\metro\src\index.js:66:9)     Thank you Sherlin
asked
1 answers
2

Do you have another Studio Pro instance running? It seems port 8083 is in use, this is used by the native packager port.  Newer Mendix releases will use a different port if it is occupied. This can happen when you have multiple instances open, even if the other one is not running. Also, Studio Pro sometimes leaves the packager running after a crash. Rebooting the machine will kill these leftover processes. You can also close all Studio Pro instances and kill leftover node processes, assuming you don't have any other node stuff running. If unsure, reboot to be on the safe side.

answered