Adding dependency gives error: 'react-scripts' is not recognized as an internal or external command, operable program or batch file"

Does anyone else get this issue? When i go to create a new project using create-react-app, and i add any dependency to it other than the stock ones, i.e. react-redux, redux, react-router-dom, i get the following error:

'react-scripts' is not recognized as an internal or external command, operable program or batch file.

I've tried building with different vs of the modules but that proved pointless.

Any advice on why would be amazing. The versions of the modules are the latest ones.

You are getting that error because you node_modules are either not present their or they are not installed properly because when you are trying to start app with

something start

then it runs the start script from package.json so install the node_ modules properly to start the react app. Run npm install in the project directory where your package.json is

0 Comment

NO COMMENTS

LEAVE A REPLY

Captcha image