Languages

Node.js - check version of installed npm package

0 points
Asked by:
Palpys
764

How can I check the version of an installed npm package?

I've tried:

npm -v <package-name>

but it prints the version of npm itself.

1 answer
0 points
Answered by:
Palpys
764

To see the versions of all packages installed locally use:

npm list

for all packages installed globally:

npm list -g

and if you want to check a specific package version, you can pass its name as an argument like this:

npm list sass

 

Practical example

Node.js - check version of sass package
Node.js - checking version of sass package
0 comments Add comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join