How to check if the certain npm module is globally installed on my machine?
up vote
3
down vote
favorite
How to check if the some needfull npm module is globally installed on my machine,and if so, what is the version ?
nodejs npm
add a comment |
up vote
3
down vote
favorite
How to check if the some needfull npm module is globally installed on my machine,and if so, what is the version ?
nodejs npm
add a comment |
up vote
3
down vote
favorite
up vote
3
down vote
favorite
How to check if the some needfull npm module is globally installed on my machine,and if so, what is the version ?
nodejs npm
How to check if the some needfull npm module is globally installed on my machine,and if so, what is the version ?
nodejs npm
nodejs npm
edited Nov 27 at 9:20
muru
135k19288488
135k19288488
asked Nov 27 at 8:52
Goran7777
187
187
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
4
down vote
accepted
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?
– Goran7777
Nov 27 at 9:19
Thanks a lot,cant upvote because i am newbie and havent reputation.
– Goran7777
Nov 27 at 9:20
npm -g ls unique-string
ornpm -g v unique-string
as well.
– muru
Nov 27 at 9:22
That's nice to get verbose output.
– karel
Nov 27 at 9:24
@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.
– Goran7777
Nov 27 at 9:29
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
accepted
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?
– Goran7777
Nov 27 at 9:19
Thanks a lot,cant upvote because i am newbie and havent reputation.
– Goran7777
Nov 27 at 9:20
npm -g ls unique-string
ornpm -g v unique-string
as well.
– muru
Nov 27 at 9:22
That's nice to get verbose output.
– karel
Nov 27 at 9:24
@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.
– Goran7777
Nov 27 at 9:29
add a comment |
up vote
4
down vote
accepted
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?
– Goran7777
Nov 27 at 9:19
Thanks a lot,cant upvote because i am newbie and havent reputation.
– Goran7777
Nov 27 at 9:20
npm -g ls unique-string
ornpm -g v unique-string
as well.
– muru
Nov 27 at 9:22
That's nice to get verbose output.
– karel
Nov 27 at 9:24
@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.
– Goran7777
Nov 27 at 9:29
add a comment |
up vote
4
down vote
accepted
up vote
4
down vote
accepted
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
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
edited Nov 27 at 9:23
answered Nov 27 at 9:00
karel
55.9k11124142
55.9k11124142
This is for all globally installed npm modules which help me too,but, is there a way to check only targeted module?
– Goran7777
Nov 27 at 9:19
Thanks a lot,cant upvote because i am newbie and havent reputation.
– Goran7777
Nov 27 at 9:20
npm -g ls unique-string
ornpm -g v unique-string
as well.
– muru
Nov 27 at 9:22
That's nice to get verbose output.
– karel
Nov 27 at 9:24
@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.
– Goran7777
Nov 27 at 9:29
add a comment |
This is for all globally installed npm modules which help me too,but, is there a way to check only targeted module?
– Goran7777
Nov 27 at 9:19
Thanks a lot,cant upvote because i am newbie and havent reputation.
– Goran7777
Nov 27 at 9:20
npm -g ls unique-string
ornpm -g v unique-string
as well.
– muru
Nov 27 at 9:22
That's nice to get verbose output.
– karel
Nov 27 at 9:24
@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.
– Goran7777
Nov 27 at 9:29
This is for all globally installed npm modules which help me too,but, is there a way to check only targeted module?
– Goran7777
Nov 27 at 9:19
This is for all globally installed npm modules which help me too,but, is there a way to check only targeted module?
– Goran7777
Nov 27 at 9:19
Thanks a lot,cant upvote because i am newbie and havent reputation.
– Goran7777
Nov 27 at 9:20
Thanks a lot,cant upvote because i am newbie and havent reputation.
– Goran7777
Nov 27 at 9:20
npm -g ls unique-string
or npm -g v unique-string
as well.– muru
Nov 27 at 9:22
npm -g ls unique-string
or npm -g v unique-string
as well.– muru
Nov 27 at 9:22
That's nice to get verbose output.
– karel
Nov 27 at 9:24
That's nice to get verbose output.
– karel
Nov 27 at 9:24
@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.
– Goran7777
Nov 27 at 9:29
@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.
– Goran7777
Nov 27 at 9:29
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1096421%2fhow-to-check-if-the-certain-npm-module-is-globally-installed-on-my-machine%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown