I want to erase my node_modules folder because I want to save some extra space. And i don't really need node packages right now. How can i do it ?. Any ideas. I've already deleted my node_modules folder. What are the next steps should I do.
Yes. So if you leave your package.json file as it is, you should (theoretically) be able to rebuild your npm dependencies. I say theoretically because it will only work if you installed your dependencies using the --save flag.
@d3cypher Hey. Yes I treat it same as a composer.json file. As @zachleigh said. --save is for package run depends and --save-dev for development packs. They go in their depends section in package.json. I see many complaints about the storage space footprint of node files. But with the ability to delete and rebuild off the .json files can manage. Took sometime to get comfortable with composer fire dance. Now I am learning the npm/yarn fire dance. I have always been comfortable linking my own code. Like Zach refining the theory.