Reputation: 2913
I have a capacitorJS project which uses capacitor 4.7.0. I need to develop a unique plugin.
The problem is that today there is version 6.0.0 and I can not find a way to create a template plugin for version 4.7.0. in capacitorJS 4.X documentation it says to run the following to create the plugin :
npm init @capacitor/plugin@latest
however when doing so it creates a 6.0.0 version.
Any way to overcome this ?
Upvotes: -2
Views: 33
Reputation: 1859
You can simply use an old version of that CLI:
npm init @capacitor/[email protected]
Version 0.9.0 is for Capacitor 4 (see GitHub).
Upvotes: -1