NPM command prompt closes immediately [closed]












1















I'm new to nodejs, after installing the node.msi
I tried opening the npm command prompt but it closes immediately without even typing any command I go it and I don't know what to do. Pls help










share|improve this question













closed as unclear what you're asking by Dave2e, Book Of Zeus, Ian Lim, user7294900, greg-449 Jan 2 at 10:27


Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.























    1















    I'm new to nodejs, after installing the node.msi
    I tried opening the npm command prompt but it closes immediately without even typing any command I go it and I don't know what to do. Pls help










    share|improve this question













    closed as unclear what you're asking by Dave2e, Book Of Zeus, Ian Lim, user7294900, greg-449 Jan 2 at 10:27


    Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.





















      1












      1








      1








      I'm new to nodejs, after installing the node.msi
      I tried opening the npm command prompt but it closes immediately without even typing any command I go it and I don't know what to do. Pls help










      share|improve this question














      I'm new to nodejs, after installing the node.msi
      I tried opening the npm command prompt but it closes immediately without even typing any command I go it and I don't know what to do. Pls help







      windows






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jan 2 at 0:54









      NexusNexus

      61




      61




      closed as unclear what you're asking by Dave2e, Book Of Zeus, Ian Lim, user7294900, greg-449 Jan 2 at 10:27


      Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.









      closed as unclear what you're asking by Dave2e, Book Of Zeus, Ian Lim, user7294900, greg-449 Jan 2 at 10:27


      Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.


























          1 Answer
          1






          active

          oldest

          votes


















          0














          Just open command prompt or powershell and run your node and npm commands from there. You're probably running npm as an executable which shows you execution and exits with bad command or something.






          share|improve this answer
























          • Like you suggested, I used command prompt directly and it didn't close down. But when I tried to type in npm start command and npm install command. It brought out this: npm warn saveerror enoent: no such file or directory, open C: usersnamepackage.json and also npm err path c:usersnamepackage.json how do I overcome this

            – Nexus
            Jan 2 at 9:11













          • need to look at package.json before i can answer anything. update your package.json in your question.

            – Harsh Vishwakarma
            Jan 2 at 9:29


















          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Just open command prompt or powershell and run your node and npm commands from there. You're probably running npm as an executable which shows you execution and exits with bad command or something.






          share|improve this answer
























          • Like you suggested, I used command prompt directly and it didn't close down. But when I tried to type in npm start command and npm install command. It brought out this: npm warn saveerror enoent: no such file or directory, open C: usersnamepackage.json and also npm err path c:usersnamepackage.json how do I overcome this

            – Nexus
            Jan 2 at 9:11













          • need to look at package.json before i can answer anything. update your package.json in your question.

            – Harsh Vishwakarma
            Jan 2 at 9:29
















          0














          Just open command prompt or powershell and run your node and npm commands from there. You're probably running npm as an executable which shows you execution and exits with bad command or something.






          share|improve this answer
























          • Like you suggested, I used command prompt directly and it didn't close down. But when I tried to type in npm start command and npm install command. It brought out this: npm warn saveerror enoent: no such file or directory, open C: usersnamepackage.json and also npm err path c:usersnamepackage.json how do I overcome this

            – Nexus
            Jan 2 at 9:11













          • need to look at package.json before i can answer anything. update your package.json in your question.

            – Harsh Vishwakarma
            Jan 2 at 9:29














          0












          0








          0







          Just open command prompt or powershell and run your node and npm commands from there. You're probably running npm as an executable which shows you execution and exits with bad command or something.






          share|improve this answer













          Just open command prompt or powershell and run your node and npm commands from there. You're probably running npm as an executable which shows you execution and exits with bad command or something.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 2 at 6:59









          Harsh VishwakarmaHarsh Vishwakarma

          428




          428













          • Like you suggested, I used command prompt directly and it didn't close down. But when I tried to type in npm start command and npm install command. It brought out this: npm warn saveerror enoent: no such file or directory, open C: usersnamepackage.json and also npm err path c:usersnamepackage.json how do I overcome this

            – Nexus
            Jan 2 at 9:11













          • need to look at package.json before i can answer anything. update your package.json in your question.

            – Harsh Vishwakarma
            Jan 2 at 9:29



















          • Like you suggested, I used command prompt directly and it didn't close down. But when I tried to type in npm start command and npm install command. It brought out this: npm warn saveerror enoent: no such file or directory, open C: usersnamepackage.json and also npm err path c:usersnamepackage.json how do I overcome this

            – Nexus
            Jan 2 at 9:11













          • need to look at package.json before i can answer anything. update your package.json in your question.

            – Harsh Vishwakarma
            Jan 2 at 9:29

















          Like you suggested, I used command prompt directly and it didn't close down. But when I tried to type in npm start command and npm install command. It brought out this: npm warn saveerror enoent: no such file or directory, open C: usersnamepackage.json and also npm err path c:usersnamepackage.json how do I overcome this

          – Nexus
          Jan 2 at 9:11







          Like you suggested, I used command prompt directly and it didn't close down. But when I tried to type in npm start command and npm install command. It brought out this: npm warn saveerror enoent: no such file or directory, open C: usersnamepackage.json and also npm err path c:usersnamepackage.json how do I overcome this

          – Nexus
          Jan 2 at 9:11















          need to look at package.json before i can answer anything. update your package.json in your question.

          – Harsh Vishwakarma
          Jan 2 at 9:29





          need to look at package.json before i can answer anything. update your package.json in your question.

          – Harsh Vishwakarma
          Jan 2 at 9:29





          Popular posts from this blog

          'app-layout' is not a known element: how to share Component with different Modules

          android studio warns about leanback feature tag usage required on manifest while using Unity exported app?

          WPF add header to Image with URL pettitions [duplicate]