Someday I just got curious about node_module
in framework or UI libraries such as React. After searching some stuff, I found there should be no changes in node_modules
unless the user really needs to, so here's my questions.
- Why there shouldn't be changes in
node_modules
? - Even I change the code, there were no change in result. Why does this happen? Even deleting the file or folder inside
node_modules
there were no changes. (I thought it should show an error, but it worked Ok...) - When we start the framework (like
npm start
in React), does NPM downloads the external files for example from Github everytime and places in the DOM? If that's right, the files innode_modules
are just readable ones?
Could someone give me an answer?