I know this may be a simple question to answer, but I am curious as to why I have to delete the node_modules folder everytime I pull from my github repo. When I try and execute "npm start" after pulling from my repo, I receive the following error, and upon deleting the node_modules folder and executing "npm install" the problem is fixed for the time being.
sh: react-scripts: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT...
I have noticed that the folder shows up as part of the changes made while pushing as well (some 2,800 files). Is this a scenario where I need to have the node_modules folder ignored (.gitignore) in order to stop this from happening? Any explanation as to why this occurs would also be cool, just as a FYI for me.
Thank you very much in advance.