ionic-team / create-capacitor-plugin

Create a new Capacitor plugin ⚡️
Other
74 stars 11 forks source link

Running npx @capacitor/cli plugin:generate gives "removed" errror #63

Closed vilasp closed 3 years ago

vilasp commented 3 years ago

As the title explains, running npx @capacitor/cli plugin:generate gives the following error, image

Are we not suppose to be able to create v2 plugins anymore? Running the command suggested by the output will create a v3 template with v3 dependencies

thomasvidas commented 3 years ago

You can use npx @capacitor/cli@2 plugin:generate to build a capacitor 2 plugin. Your error happens because npx will pull the local package you have in your project or the latest available one on npm. I'll update the docs to be a bit more clear.