Many thanks! Yes, I am using npm 7 and --legacy-peer-deps
did the trick in terms of installing Clipboard plugin. Also, I’m glad to have learnt about the changes in npm 7, so thanks for the link.
However, I now have a new problem which I assume must be related. When I try to build my project (Vue + Capacitor) I now get an error relating to the in-app-purchase-2
Ionic Native wrapper I’m using. This was previously building fine and didn’t require @ionic-native/core
. I’m reluctant to install @ionic-native/core
as it wasn’t necessary before. The only change I’ve made, other than installing the Clipboard plugin, was to update npm to v7.11.2. Could that have caused the problem?
> vue-cli-service build
⠏ Building for production...
ERROR Failed to compile with 1 error 09:55:53
This dependency was not found:
* @ionic-native/core in ./node_modules/@ionic-native/in-app-purchase-2/index.js
To install it, you can run: npm install --save @ionic-native/core
ERROR Build failed with errors.