Pretty sure the magic that fixed it for me:
- delete
/node_modules
,/platforms
,/plugins
,/package-lock.json
- re-run troubled command(s)
But here are all the things I did (incase it was a different thing that actually fixed it)….
Windows:
- Upgrading node from 12.14.0 -> 15.x
- delete node_modules, platforms, plugins, package-lock.json
- re-run troubled command(s)
- success!
Mac:
- Upgrading node from 12.14.0 -> 14.15.0 (probably didn’t actually matter)
- delete node_modules, platforms, plugins
- re-run troubled command(s)
- failed
- delete node_modules, platforms, plugins, package-lock.json
- Restart computer (mac)
- re-run troubled command(s)
- success!
All are on Cordova 9.0.0 and node 14+.
Received this error when installing plugins usually.
Got the error for building ios and android.