How do I know which version of a package is installed?

How do I know which version of a package is installed?
Answer
To see the installed npm packages with their version, the command is
npm ls –depth=0, which, by default, displays what is installed locally. To see the globally installed packages, add the -global argument: npm ls –depth=0 -global .
 

Tìm kiếm

Back
Top