I have to remove several libraries from the project. Currently worried about what if I remove a library, which is dependency of any other library.
Which approach can safely remove the libraries ?
I see I have two choices:
Edit package.json manually. Remove library entries... Delete node_modules folder and do npm install.
do npm uninstall --save for each package.
What are difference between two, especially when I want to take one step at a time. Without breaking any peer dependencies