How to check version of package installed by npm?

0 votes

How to get the version of package installed using npm? I need to know the version of few packages for compatibility issue. Tried the following but did not work:

npm -v <package-name>
npm version <package-name>

Feb 4 in Linux Administration by Faizal
52 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes

These commands are used to check the version of npm, you can't use it to check the version of any package.

To check the version of packages installed using npm, you can run the following command:

npm list

This will print the package name along with the version

answered Feb 4 by Omkar
• 65,850 points

Related Questions In Linux Administration

0 votes
1 answer
0 votes
1 answer

How to find path of software installed in Linux?

There are multiple ways to find the ...READ MORE

answered 5 days ago in Linux Administration by Rishi
13 views
0 votes
1 answer

How to display a simple list of all disks, like this /dev/sda /dev/sdb ?

You can list all the disk in ...READ MORE

answered Jul 12, 2018 in Linux Administration by DearestOne
• 200 points
75 views
0 votes
1 answer

how to loop through the content of a file using bash

One of the ways to do it ...READ MORE

answered Feb 15 in Linux Administration by ajs3033
• 7,040 points
40 views
0 votes
1 answer

how to safely deploy npm install without it causing inconsistencies?

The recent versions on npm generates a ...READ MORE

answered Apr 11, 2018 in DevOps on Cloud by DareDev
• 6,560 points
41 views
0 votes
1 answer

Migrating proxy npm repo in nexus 3

I don't think you can achieve this ...READ MORE

answered Jun 22, 2018 in DevOps Tools by DareDev
• 6,560 points
146 views
0 votes
1 answer

Publishing npm publish to nexus group repo

Group cannot be published. I'll suggest you ...READ MORE

answered Jun 22, 2018 in Other DevOps Questions by DareDev
• 6,560 points
547 views
0 votes
1 answer

npm hfc@0.6.2 not properly installing

this is harmless, the hfc module should ...READ MORE

answered Jul 23, 2018 in Blockchain by charlie_brown
• 7,710 points
25 views
0 votes
1 answer

How to change permissions of folder and files in folder?

The chmod command is used to set/change the permissions ...READ MORE

answered Jan 31 in Linux Administration by Omkar
• 65,850 points
17 views
+1 vote
1 answer

Not able to install npm on Ubuntu

Try installing npm using aptitude: sudo apt install aptitude sudo ...READ MORE

answered Nov 28, 2018 in Linux Administration by Omkar
• 65,850 points
891 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.