azurenodejs

List installed Node.js modules

To list the modules installed locally in a project, enter the project directory and execute the npm list command, as shown in the example below.

$ cd sample
$ npm list
  application-name@0.0.1 /home/bitnami/projects/sample
+-- express@2.5.8
| +-- connect@1.8.7
| | +-- formidable@1.0.9
| +-- mime@1.2.4
| +-- mkdirp@0.3.0
| +-- qs@0.4.2
+-- jade@0.26.1
  +-- commander@0.5.2
  +-- mkdirp@0.3.0

You can also list the globally installed packages by entering the project directory and executing the npm -g list command, as shown below:

$ cd sample
$ npm -g list
  /opt/bitnami/nodejs/lib
+-- coffee-script@1.3.3
+-- colors@0.6.0-1
...
+-- express@2.5.9
| +-- connect@1.8.7
| +-- qs@0.4.2
| +-- cliff@0.1.7
...
| | +-- colors@0.6.0-1
+-- jade@0.26.0
| +-- commander@0.5.2
| +-- mkdirp@0.3.0
+-- node-dev@0.2.3
+-- npm@1.1.21
| +-- abbrev@1.0.3
| +-- node-gyp@0.4.1
| | +-- ansi@0.0.4
| +-- uid-number@0.0.3
| +-- which@1.0.5
+-- uglify-js@1.2.6
Last modification December 21, 2022