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
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 :)
Putting npx before strapi will resolve this issue . So instead of strapi develop , run following command:
npx strapi develop
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With