2020-11-06

Finding: will npm install get back node_modules I deleted

 

Googled: Angular clear node_modules

my local Angular projects, can I just remove node_modules folder, and will get back just run npm install right?


Double checked, yes, will get back the folder.


But node_modules folder different size compare with:

the node_modules folder before delete (generated by ng new)

the node_modules folder generated after npm install











local untracked file is gone after git pull

 Git version:

PortableGit-2.28.0-64-bit.7z


Case:

Did a Git Stash in Visual Studio Code, before commit i did git  pull, then my changes and new files all gone.


Read article saying that git stash won't "add" new files(untracked)

https://www.cnblogs.com/zndxall/archive/2018/09/04/9586088.html

But luckily still able get back all files(changes + new/untracked files) by git stash pop.














Google Referrals