Prev Next

Web / NodeJS Interview questions

Find the version of an installed npm package.

Run npm list <package> in the project, or npm list -g <package> for a global install. npm outdated and package-lock.json also show resolved versions.

Use npm list for local packages or npm list -g for globally installed packages.

To find the version of the particular package given that the package name is known, use the command npm list package-name.

More Related questions...

Show more question and Answers...


Comments & Discussions