Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I see the installed modules?

Tags:

react-native

How do can I see a complete list of the modules installed by ´npm install´ command?

Example: npm list react-native-modules

like image 225
Italo Rodrigo Avatar asked Sep 11 '25 07:09

Italo Rodrigo


2 Answers

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
like image 141
Mohammed Ashfaq Avatar answered Sep 13 '25 07:09

Mohammed Ashfaq


You can find them in package.json -> dependencies eg:

"dependencies": {
"@chakra-ui/react": "^1.6.5",
"@emotion/react": "^11.4.0",
"@emotion/styled": "^11.3.0",
"@react-icons/all-files": "^4.1.0",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"axios": "^0.21.1",
"bootstrap": "^4.6.0",
"formik": "^2.2.9",
"framer-motion": "^4.1.17",
"react": "^17.0.2",
"react-bootstrap": "^1.6.1",
"react-datepicker": "^4.1.1",
"react-dom": "^17.0.2",
"react-icons": "^4.2.0",
"react-modal": "^3.14.3",
"react-scripts": "4.0.3",
"react-toastify": "^7.0.4",
"web-vitals": "^1.1.2",
"yup": "^0.32.9"

},

like image 27
subhashis Avatar answered Sep 13 '25 07:09

subhashis