'Strapi create new plugin plugin generator command does not work
I created a strapi project without using the strapi quickstart feature and now we are unable to create custom plugins for strapi.
Upon running the command to create a new plugin, we are getting the following error message:
error No generator called `plugin` found.
The command which I used was
npm run strapi generate:plugin my-form
Solution 1:[1]
The strapi module under the node_modules folder was lacking the strapi-generate-plugin plugin.
Open the terminal in the node_modules/strapi folder of the project and install the plugin.
$ cd path/to/poject/node_modules/strapi && sudo npm i strapi-generate-plugin
Solution 2:[2]
Try this for v4 and select plugin to create
yarn strapi generate
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Aditya Priyam |
| Solution 2 | AndyC |
