I have been following this webpage: https://medium.com/walmartglobaltech/creating-react-redux-express-full-stack-application-part-i-82959d847802
So the first time I ran into some issues so I thought it would be best to start from scratch.The first time I kept getting errors about 'react-scripts' is not recognized. I tried 'npm install react-scripts --save' but that didn't work so I gave up and deleted that project.
But when I made the new one it highlighted a bunch of stuff as wrong. And when I got to 'npm start' it keeps saying, 'react-scripts' is not recognized as an internal or external command. My friend did this and she didn't run into this error. I am new to Node.js anything would be helpful!
things that I've tried that didn't work:
npm install -f
rm -rf node_modules && npm install
npm install --save react-scripts
npm cache clean --force npm rebuild npm install
I created a new workspace and it inherited the error- is there a way to delete it all and try again?
-Please help
You can try using yarn. There have been some who solved it this way. I hope you can solve your problem.
yarn add react-scripts
I had similar problem, but I restarted the system and it worked. Don't know exactly what was causing this issue might be a cache issue.
So there were two issues: first my directory needed to be updated and I didn't have the node_modules in my client folder - hope this helps anyone else!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.