Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Strapi Development mode issue

Tags:

strapi

I am new to strapi and want to start it on development mode. Below are steps I have followed so far

git clone [email protected]:strapi/strapi.git
cd strapi
npm run setup

but then while generating a project somewhere else using the development mode: i am getting error on running below command as

'strapi' is not recognized as an internal or external command operable program or batch file.

strapi new myDevProject --dev

any help? I have uninstalled strapi global as documentation pointed. Anything I am missing. Do I need to install non global version of strapi in the same directory.

Thanks

like image 749
Akki619 Avatar asked Jul 18 '26 11:07

Akki619


2 Answers

You can install Strapi globally in your machine using npm without the need of pulling the repo manually:

npm install -g strapi@beta

Restart your terminal, then run:

strapi new [project_name] --quickstart

Then your project will start automatically :)

like image 136
Sletheren Avatar answered Jul 21 '26 12:07

Sletheren


Putting npx before strapi will resolve this issue . So instead of strapi develop , run following command:

npx strapi develop

like image 23
Śãmiķšha Ŕånjaň Avatar answered Jul 21 '26 11:07

Śãmiķšha Ŕånjaň



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!