skip to Main Content

I tried to run a react-native project from the Visual Studio Code own terminal with this command react-native run-android but I get this error :

error-image

How can I solve the error “launchPackager.command” can’t be opened because (null) is not allowed to open documents in Terminal. with Visual Studio Code in MacMini ?

2

Answers


  1. Chosen as BEST ANSWER

    My solution was to disable SIP protection until Apple pushes a fix for this problem I followed the steps below :

    • Boot into recovery mode by press and hold the power button

    • Access Terminal from Utilities

    • type csrutil disable

    • Restart


  2. While I faced the same issue when running the Android & iOS build specific commands, I found that the Metro server can still be started. It then provides easy options to build the current app for each platform.

    What worked for my react-native project with was simply react-native start.

    This was successful both in the VS Code Terminal and the macOS default Terminal app.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search