I tried to build my react-native application using npx react-native run-android
command. App builds successfully but metro blunder not opening and return following error message.
launchPackager.command” can’t be opened because (null) is not allowed to open documents in Terminal.
Anyone has an idea to fix this issue ?
My machine specifications : MacBook Pro M1, macOS Ventura 13
3
Answers
There is a one solution but need to do it manually.
Go to your project folder -> node modules -> react native -> scripts -> open "launchPackager.command"
you all good now
i found solution to this in other thread….
“launchPackager.command” can’t be opened
but i wanted to fix the issue and keep using default terminal instead of using different terminal options….if anyone gets a solution for it plz do reply.
same os version – ventura.
The problem was that this script couldn’t find the application to run this command.
Permanent solution:
Set iTerm as the Default Handler for *.command Files