1. If it is a library based only on javascript, than you can just run
npm uninstall --save package_name or npm uninstall --save-dev package_name
2. If you have installed a library with native content that requires linking,
and you have linked it with npm then you can do:
npm unlink [package_name] then follow step 1
3. If you've installed a library with native content manually,
then just undo all the steps you took to add the library in the first place.
Then follow step 1.