0

I am working on Frontend side Project. I create React_app and after that I run the 'npm start' command it returns an error. The error is as follows.

    (hello) D:\NewPython\DockerDjangoReactProject\frontend\react_app>npm start

> [email protected] start D:\NewPython\DockerDjangoReactProject\frontend\react_app
> react-scripts start

'react-scripts' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\User\AppData\Roaming\npm-cache\_logs\2020-12-01T05_06_13_740Z-debug.log

please help me solve this problem, I want to complete my project but this error is in my way.

5
  • Please post the github repo Commented Dec 1, 2020 at 5:42
  • Might it be the react-scripts package isn't installed? Commented Dec 1, 2020 at 5:44
  • @FLiotta yes right After that i run npm start it will gives me this error Commented Dec 1, 2020 at 7:39
  • Failed to compile ./src/reportWebVitals.js Module not found: Can't resolve 'web-vitals' in 'D:\NewPython\DockerDjangoReactProject\frontend\react_app\src' This error occurred during the build time and cannot be dismissed. -- On browser Commented Dec 1, 2020 at 7:41
  • Did you tried remove node_modules directory and re-install dependencies? Commented Dec 1, 2020 at 8:24

1 Answer 1

0

This issue is with react-scripts. Possibilities are

  1. react-scripts is not installed. In this case, you can manually install using this command.

npm install react-scripts --save

  1. Or if it is already there, then it might be the problem with node_modules folder. You can remove this folder and/or run the following command.

npm install

Sign up to request clarification or add additional context in comments.

1 Comment

Welcome. Thanks for yor response! @Ankita

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.