Error building cordova project

For anyone on MacOS ARM still struggling with this, the issue is you can only run this with Rosetta.

  1. Right click terminal app
  2. Click checkbox, open with Rosetta
  3. (Close terminals if you have any open)
  4. Open again, now you can run the update command from above in that terminal

I have yet to figure out how to get this to work with the terminal in Cursor though.