React Tips: 3 - Cloning a React Repository

August 03, 2019

After you clone a React repository, running npm start may give this error:

‘react-scripts’ is not recognized as an internal or external command

The reason, as explained here, is that you need to run:



npm install

This should be run inside the directory that you clone. For example:



git clone https://github.com/pcmichaels/react-demos.git
cd react-demos
npm install
npm start



Profile picture

A blog about one man's journey through code… and some pictures of the Peak District
Twitter

© Paul Michaels 2022