Remove Node Modules & Bring Back | Removal Command via NPM

Remove Node Modules & Bring Back | Removal Command via NPM


Remove Node Modules & Bring Back | Removal Command via NPM

Node Modules, npm packages or project dependencies are installed and uninstalled but not shared or uploaded. These packages get updates and older versions becomes deprecated. You have to install or remove node modules often. I work on a project and when I am done with it, I always remove entire node modules folder to save space. If you work on loads of nodejs or reactjs projects, then you have a lot of hard drive space occupied by node modules - if you don’t remove them. Removal of node modules is easy and it takes only one command. Bringing them back is also easy and takes single npm command. Watch how to do it in video.

#npm #nodejs #nodemodules #js #javascript #webstylepress #webdevelopment
Thank You!

Channel Support
👍 LIKE VIDEO
👊 SUBSCRIBE
🔔 PRESS BELL ICON
✍️ COMMENT

Channel:    / webstylepress  
Website: https://www.webstylepress.com
FaceBook: https://www.facebook.com/webstylepress/
Twitter: https://twitter.com/webstylepress
Instagram: https://www.instagram.com/webstylepress
LinkedIn: https://www.linkedin.com/company/webs
GitHub: https://github.com/webstylepress


Content

0.48 -> let's remove node modules folder
4.56 -> and the command is rm dash
7.839 -> rf node underscore
11.84 -> modules that is folder name enter
15.839 -> and as you can see node modules folder
18.08 -> was removed
19.92 -> but packages information is not lost
23.76 -> package information is in the
26.039 -> package.json
27.199 -> file we had these two models
31.599 -> installed now you can bring back
35.12 -> lost packages we can reinstall packages
38.64 -> easily
39.84 -> and for that we have
43.28 -> command npmi or
46.32 -> npm install
49.6 -> this command will scan package.json file
53.36 -> for dependencies and bring them from
56.8 -> npm registry you will have node modules
60 -> folder again as you can see here
63.359 -> so don't worry about node modules folder
66.159 -> and if you see inside it
67.6 -> it has got board strap and movement
73.119 -> packages that were present in
75.96 -> package.json file

Source: https://www.youtube.com/watch?v=NjiFR1iao0Y