-1

I started using npm init create-react app in order to setup any projects of mine that use react and realised that whenever I use this npm command there's a folder of nearly 300Mb called node_modules in the project folder. Does anyone know whether I can delete this folder to save space or will my code not work properly?

I tried deleting them on a small project I'm just starting and it seems to work fine without them. I'm mainly worried that it could cause problems in the future.

Noddy-712
  • 1
  • 1
  • 1
    The node_modules directory is needed to run your application locally, it contains supporting code for modules you have in your package.json. Note that this directory should be ignored for things like git and not uploaded to the repository – Harrison Aug 27 '23 at 09:12

0 Answers0