It looks like the CLI doesn't understand that these are local plugins and therefore it tries to download them from the registry. This is most likely an npm problem. Something doesn't play nice with cordova and npm 7. I suggest you run node v15.6.0 (latest non lts).
This version normally comes bundled with a newer npm (v7), however for this to work (until cordova sorts their stuff out), you have to downgrade npm to 6.14.11
I have done this with (the use of sudo or not will depend on your environment setup):
sudo npm i -g npm
Or you can specify a version with:
sudo npm i -g npm@version
Source for the above solution:
https://github.com/apache/cordova-cli/issues/541
Other than that, I just had to fight for a few hour to get stuff building on my M1...
Some hints that will probably help you out tremendously:
- Cocoapods needs to be installed in a rosetta mode terminal. You will most likely need to install the ffi gem in that same terminal before installing cocoapods and running pod install inside the ios platform folder. The native ffi gem that is there by default doesn't seem to work with cocoapods.
- You will have to exclude arm64 and x86_64 architecture emulators from being built automatically in XCode. If you don't you will get symbols missing errors on build.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…