Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Listing globally installed NPM packages and version
npm list -g --depth=0
@RavindraNagraj

This comment has been minimized.

Copy link

RavindraNagraj commented Aug 30, 2017

i am getting this so i to solve it

/usr/local/lib
`-- (empty)

@YuilTripathee

This comment has been minimized.

Copy link

YuilTripathee commented Oct 5, 2017

why is --depth=0 necessary?

@eschie

This comment has been minimized.

Copy link

eschie commented Oct 19, 2017

@YuilTripathee otherwise you will get a list of all global package dependencies.

@drdhruti315

This comment has been minimized.

Copy link

drdhruti315 commented Apr 4, 2018

What is the significance of the + and ' symbols

@jpdevspace

This comment has been minimized.

Copy link

jpdevspace commented May 8, 2018

--depth=0 or --depth 0 is necessary so that it only shows you the global package and not their dependencies.

@andreipaz

This comment has been minimized.

Copy link

andreipaz commented May 17, 2018

What is the significance of the + and ` symbols? (2)

@cristianofromagio

This comment has been minimized.

Copy link

cristianofromagio commented Jun 5, 2018

@drdhruti315 @andreipaz If you are talking about this:
image
The plus signs are from git and represent a line addition (and displayed green) while a line deletion is a minus sign and displayed red. The ``` are from markdown and used to highlight a code block.

@cortesa

This comment has been minimized.

Copy link

cortesa commented Mar 2, 2019

why is --depth=0 necessary?

with it, it also shows all the dependencies tree
try to do it without this... it shows only first braches on the tree (installed package names)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.