rajesh_pg
rajesh_pg

Reputation: 39

How to get the node.js package path(wherever installed) along with its name and version

I know with this(npm -g ls --json) command we will get package name and version. I also need complete path where the package is installed globally

Upvotes: 0

Views: 48

Answers (1)

Gergo Erdosi
Gergo Erdosi

Reputation: 42063

You can use the --long option which will show extended information including paths.

npm ls -g --json --long

Upvotes: 1

Related Questions