close

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

I am trying to use react-script but somehow it is failing with the following error ‘react-scripts’ is not recognized as an internal or external command in ReactJS. We are going to Learn about All Possible Solutions So Lets Get Start with This Article.

How ‘react-scripts’ is not recognized as an internal or external command Error Occurs ?

I am trying to use react-script but somehow it is failing with the following error.

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

So here I am writing all possible solutions that I have tried to resolve this error.

How To Solve ‘react-scripts’ is not recognized as an internal or external command Error ?

  1. How To Solve ‘react-scripts’ is not recognized as an internal or external command Error?

    To Solve ‘react-scripts’ is not recognized as an internal or external command Error First of all, just check if your package.json has react-scripts available or not. If package.json has react-scripts then you just need to npm install and then Your error will be solved. Just run this command: npm install If package.json Doesn’t have react-scripts then Just install react-scripts with this command: npm install react-scripts –save Now, your read-script error must be solved. Thank You.

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

    To Solve ‘react-scripts’ is not recognized as an internal or external command Error Usually, This error occurs when node_modules doesn’t have react-scripts files so the simple and easiest solution is just to install react-scripts manually using this command: npm install react-scripts –save Now, your error must be solved.

Solution 1: Install react-scripts manually

Usually, This error occurs when node_modules doesn’t have react-scripts files so the simple and easiest solution is just to install react-scripts manually using this command.

npm install react-scripts --save

Now, your error must be solved.

Solution 2: Check Your package.json

First of all, just check if your package.json has react-scripts available or not.

If package.json has react-scripts then you just need to npm install and then Your error will be solved. Just run this command.

npm install

If package.json Doesn’t have react-scripts then Just install react-scripts with this command.

npm install react-scripts --save

Now, your read-script error must be solved. Thank You.

Solution 3: Diffrent method

Just run this command.

rm -rf node_modules

Then,

npm install

OR Install react-script directly

npm install react-scripts --save-dev

Now, your error must be solved.

Summary

It’s all About this error. Hope We solved Your error. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment