Kent
Kent

Reputation: 91

How to tell what’s installed under npm

I just want to get a snapshot of what's installed locally in a project and what's installed globally:

npm whats-installed-locally
npm whats-installed-globally
npm whats-dependencies-between-local-global-repos

What's the proper command-line sequence?

Also, is there a way to determine which dependencies are being unhinged between the two repositories?

Upvotes: 0

Views: 767

Answers (1)

John Petrone
John Petrone

Reputation: 27507

To list the local installed npm packages:

npm list

To list the globally installed npm packages:

npm list -g

Upvotes: 2

Related Questions