Akki619
Akki619

Reputation: 2432

Strapi Development mode issue

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

Upvotes: 7

Views: 24368

Answers (8)

Prime
Prime

Reputation: 1

Just run command npm run develop for starting strapi application.

Also you can follow more steps on Documentation here

Upvotes: 0

VibrationPositive
VibrationPositive

Reputation: 410

I had already deployed my strapi app in development and successfully ran strapi develop but it didnt work for me in recent times.

This did though:

npm run dev

I was able to get the local strapi host running but I did get some npm errors.

Upvotes: 0

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

npx strapi develop

Upvotes: 6

Akhil S
Akhil S

Reputation: 1171

As the above answers you can install the strapi-cli globally, or once your project is created use below commands to run it

npm run build
npm start

Upvotes: 1

Leon
Leon

Reputation: 305

For existing projects you are cloning on a different machine, just don't forget to:

npm install

Resolved

'strapi' is not recognized as an internal or external command

for me

Upvotes: 1

Sletheren
Sletheren

Reputation: 2478

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 :)

Upvotes: 6

vipin joshi
vipin joshi

Reputation: 57

please proceed the following steps:

step1 - open node.js command prompt and type -> npm install strapi@alpha g

step2 - strapi new (anyName_You_want_toGive) --quickstart

(remove the brackets)

it should look like

strapi new anyName_You_want_toGive --quickstart

thats all.

Thanks

Upvotes: 0

Daniel Karski
Daniel Karski

Reputation: 346

After pull repository and install strapi@beta globally you need generate new project by command like in the bellow instructions:

  1. Create a new project

    strapi new my-project
    
  2. Start your project

    cd my-project
    strapi develop
    

Source: https://github.com/strapi/strapi

I proposse you read Quick Start Guide

Upvotes: 1

Related Questions