Closed macsupport closed 2 years ago
I have the same problem when I tried to install the plugin. Any solution for this?
This is typically an issue with your node installation. Give both node 16.x+ and npm 8.x+ a re-install.
Unfortunately, I did that a number of times with no change.
The error posted points to npm being very out of date, there may be something wrong with what version is being used. If you use tools like nvm make sure those are functioning properly.
For anyone with this issue in the future. It seems I had another, old version of npm in my Users/myname/ folder, which was being utilized instead of the global, current npm version.
Describe the bug After installing Electron
npm i @capacitor-community/electron
, adding electron usingnpx cap add @capacitor-community/electron
, shows the following error:To Reproduce run npx cap add @capacitor-community/electron
Expected behavior Electron should be added without this error