Aditya Priyam
Aditya Priyam

Reputation: 156

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

Upvotes: 0

Views: 1844

Answers (2)

AndyC
AndyC

Reputation: 129

Try this for v4 and select plugin to create

yarn strapi generate

Upvotes: 1

Aditya Priyam
Aditya Priyam

Reputation: 156

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

Upvotes: 3

Related Questions