How to check if the some needfull npm module is globally installed on my machine,and if so, what is the version ?
1 Answer
To check which modules of nodejs or node (snap package) are installed globally run this command:
npm -g ls
To check if a node module (example unique-string module) is installed globally run this command:
npm -g ls | grep unique-string
Results:
│ │ ├─┬ unique-string@1.0.0
-
This is for all globally installed npm modules which help me too,but, is there a way to check only targeted module? Nov 27, 2018 at 9:19
-
Thanks a lot,cant upvote because i am newbie and havent reputation. Nov 27, 2018 at 9:20
-
-
-
@muru Thank you too,i can only say thanks for now,cant upvote.@karel npm -g ls | grep unique-string method is exactly what i need. Nov 27, 2018 at 9:29