-1

I have problem about react project when I hit enter the command like yarn start so I have face the mentioned problem like react-script is not recognize internal or external command. I have this script in dependencies but still I face this problem. I have the latest version of node, and I have updated npm but still I have this problem.

enter image description here

jonrsharpe
  • 115,751
  • 26
  • 228
  • 437

4 Answers4

1

Try this command: npm add react-scripts --include=dev

Shane 045
  • 11
  • 1
0
  1. Make sure that you are inside the project folder before you use the yarn start command.
  2. Or try deleting the cache and node-modules and package-lock.json and re-install it.
  3. You can try manually installing react-scripts for your application.
Dharman
  • 30,962
  • 25
  • 85
  • 135
0

1 . Try yarn install

2 . If the problem is not solved yarn add react-scripts --dev

ebed meleck
  • 313
  • 2
  • 5
0
  1. Remove node_module folder

  2. Remove yarn.lock file

  3. On cmd, run npm cache clean --force

  4. yarn add react-scripts