How to find the version of an installed NPM package?

Sometimes, we want to find the version of an installed NPM package.

In this article, we’ll look at how to find the version of an installed NPM package.

How to find the version of an installed NPM package?

To find the version of an installed NPM package, we can use the npm list command.

We run

npm list

to find the version numbers for local packages.

And we run

npm list -g

to find the version numbers for global packages.

We can also run npm list with the package name to find the version of the package installed.

For instance, we run

npm list left-pad

to find the version of the left-pad package installed.

Conclusion

To find the version of an installed NPM package, we can use the npm list command.