EN
React - 'react-scripts' is not recognized as an internal or external command
2
answers
3
points
I've tried to start React project and I've got the following error:
'react-scripts' is not recognized as an internal or external command
How can I fix this?
2 answers
4
points
It looks like you don't have installed node packages.
Install them using:
1. continuous integration mode:
npm ci install
Notes:
ci
option prevents against packages versions changing,- it can be used if
package-lock.json
file is available.
2. normal installation mode:
npm install
0 comments
Add comment
3
points
You can solve it by going through the following steps:
- Open the Terminal in the main directory of your React project (the folder containing
src/
,.gitignore
,package.json
, etc.), - use
npm install
command.
The second option is that you are missing react-scripts
in package.json
file.
In this case you should use:
npm install react-scripts --save
0 comments
Add comment