Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

How to find out a library is installed in React js?

I wanted to know if I have already installed prop-types library in React Js .Is there any command line code to get the installed libraries in React js?

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

If you are not adding any arguments to the npm install command, it installs all items in your package.json. There are all installed in that directory in the node_modules folder.
This is a faculty of NPM and does not really have anything specifically to do with React Native (which makes me hope I understand your question correctly :\ ).

The below command will give you the list of npm packages installed in the current directory.

npm ls –depth=0
You can set the depth value to see the dependency of the installed packages. i.e. npm ls –depth=1

To get the list of globally installed npm package list

npm ls -g –depth 0

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading