How to check if the certain npm module is globally installed on my machine?











up vote
3
down vote

favorite
1












How to check if the some needfull npm module is globally installed on my machine,and if so, what is the version ?










share|improve this question




























    up vote
    3
    down vote

    favorite
    1












    How to check if the some needfull npm module is globally installed on my machine,and if so, what is the version ?










    share|improve this question


























      up vote
      3
      down vote

      favorite
      1









      up vote
      3
      down vote

      favorite
      1






      1





      How to check if the some needfull npm module is globally installed on my machine,and if so, what is the version ?










      share|improve this question















      How to check if the some needfull npm module is globally installed on my machine,and if so, what is the version ?







      nodejs npm






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 27 at 9:20









      muru

      135k19288488




      135k19288488










      asked Nov 27 at 8:52









      Goran7777

      187




      187






















          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





          share|improve this answer























          • 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 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










          • @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













          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          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

























          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





          share|improve this answer























          • 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 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










          • @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

















          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





          share|improve this answer























          • 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 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










          • @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















          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





          share|improve this 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






          share|improve this answer














          share|improve this answer



          share|improve this answer








          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 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










          • @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










          • 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










          • 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




















          draft saved

          draft discarded




















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

          ComboBox Display Member on multiple fields

          Is it possible to collect Nectar points via Trainline?