install cordova npm hangs in loadRequestedDeps in linux OS












0















I am new here for asking question. If any mistake, pls forgive and correct me.
I'm trying to install Cordova on my linux ubuntu 18.04 PC.
I tried installing NodeJS and executing sudo npm install -g cordova, as suggested in Cordova docs, and it takes forever.
The output is as follows:




npm install -g -d cordova




i hangs on the line




loadRequestedDeps




it has stay there forever. I launched it at 10pm yesterday, and still now it is still there.



I already saw this question but the question was for windows.



The PC is an Intel i3, with 4GB RAM and a Hp probook 440g1.



Why is this happening? Is there a way I can fix it?










share|improve this question



























    0















    I am new here for asking question. If any mistake, pls forgive and correct me.
    I'm trying to install Cordova on my linux ubuntu 18.04 PC.
    I tried installing NodeJS and executing sudo npm install -g cordova, as suggested in Cordova docs, and it takes forever.
    The output is as follows:




    npm install -g -d cordova




    i hangs on the line




    loadRequestedDeps




    it has stay there forever. I launched it at 10pm yesterday, and still now it is still there.



    I already saw this question but the question was for windows.



    The PC is an Intel i3, with 4GB RAM and a Hp probook 440g1.



    Why is this happening? Is there a way I can fix it?










    share|improve this question

























      0












      0








      0








      I am new here for asking question. If any mistake, pls forgive and correct me.
      I'm trying to install Cordova on my linux ubuntu 18.04 PC.
      I tried installing NodeJS and executing sudo npm install -g cordova, as suggested in Cordova docs, and it takes forever.
      The output is as follows:




      npm install -g -d cordova




      i hangs on the line




      loadRequestedDeps




      it has stay there forever. I launched it at 10pm yesterday, and still now it is still there.



      I already saw this question but the question was for windows.



      The PC is an Intel i3, with 4GB RAM and a Hp probook 440g1.



      Why is this happening? Is there a way I can fix it?










      share|improve this question














      I am new here for asking question. If any mistake, pls forgive and correct me.
      I'm trying to install Cordova on my linux ubuntu 18.04 PC.
      I tried installing NodeJS and executing sudo npm install -g cordova, as suggested in Cordova docs, and it takes forever.
      The output is as follows:




      npm install -g -d cordova




      i hangs on the line




      loadRequestedDeps




      it has stay there forever. I launched it at 10pm yesterday, and still now it is still there.



      I already saw this question but the question was for windows.



      The PC is an Intel i3, with 4GB RAM and a Hp probook 440g1.



      Why is this happening? Is there a way I can fix it?







      linux ubuntu apache-cordova






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 8 at 3:26









      Arif ImranArif Imran

      11




      11






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I solved this.




          1. I install latest nodejs from nodejs website: download and install .tar file to a directory where you want to install.


          2. then run




          sudo npm init





          1. then force npm clear cache



          sudo npm cache clean --force





          1. install cordova latest



          sudo npm install -g cordova@latest







          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            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',
            autoActivateHeartbeat: false,
            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%2fsuperuser.com%2fquestions%2f1403388%2finstall-cordova-npm-hangs-in-loadrequesteddeps-in-linux-os%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









            0














            I solved this.




            1. I install latest nodejs from nodejs website: download and install .tar file to a directory where you want to install.


            2. then run




            sudo npm init





            1. then force npm clear cache



            sudo npm cache clean --force





            1. install cordova latest



            sudo npm install -g cordova@latest







            share|improve this answer




























              0














              I solved this.




              1. I install latest nodejs from nodejs website: download and install .tar file to a directory where you want to install.


              2. then run




              sudo npm init





              1. then force npm clear cache



              sudo npm cache clean --force





              1. install cordova latest



              sudo npm install -g cordova@latest







              share|improve this answer


























                0












                0








                0







                I solved this.




                1. I install latest nodejs from nodejs website: download and install .tar file to a directory where you want to install.


                2. then run




                sudo npm init





                1. then force npm clear cache



                sudo npm cache clean --force





                1. install cordova latest



                sudo npm install -g cordova@latest







                share|improve this answer













                I solved this.




                1. I install latest nodejs from nodejs website: download and install .tar file to a directory where you want to install.


                2. then run




                sudo npm init





                1. then force npm clear cache



                sudo npm cache clean --force





                1. install cordova latest



                sudo npm install -g cordova@latest








                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 8 at 18:49









                Arif ImranArif Imran

                11




                11






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • 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%2fsuperuser.com%2fquestions%2f1403388%2finstall-cordova-npm-hangs-in-loadrequesteddeps-in-linux-os%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

                    Probability when a professor distributes a quiz and homework assignment to a class of n students.

                    Aardman Animations

                    Are they similar matrix