Is it possible to install Node.js and NPM on Ubuntu Core?












1















I would like to know if Node.js is available in Ubuntu Core and if yes, how I can install it.



I see this issue Node on Snappy Ubuntu, but it says nothing.



Thank you very much.










share|improve this question



























    1















    I would like to know if Node.js is available in Ubuntu Core and if yes, how I can install it.



    I see this issue Node on Snappy Ubuntu, but it says nothing.



    Thank you very much.










    share|improve this question

























      1












      1








      1








      I would like to know if Node.js is available in Ubuntu Core and if yes, how I can install it.



      I see this issue Node on Snappy Ubuntu, but it says nothing.



      Thank you very much.










      share|improve this question














      I would like to know if Node.js is available in Ubuntu Core and if yes, how I can install it.



      I see this issue Node on Snappy Ubuntu, but it says nothing.



      Thank you very much.







      ubuntu-core nodejs npm






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Oct 19 '17 at 14:42









      user280841user280841

      78117




      78117






















          2 Answers
          2






          active

          oldest

          votes


















          1














          If you need Nodejs for your application, convert your application to snap (with snapcraft) and install it snap install <your application> . Nodejs is then packaged in the snap and you do not need to extra install it. Otherwise may be Ubuntu Server is better suited for you.






          share|improve this answer































            0














            This worked for me.



            I used the info here: Install applications in Ubuntu core




            sudo snap install classic --devmode --edge




            then




            sudo classic




            To enable aptitude, then your normal:




            sudo apt-get install nodejs nodejs-legacy npm



            sudo npm i -g npm




            To get NPM to version: 3.5.2 and Node to: 4.2.6



            Then NPM can't be updated further this way, as it complains about the version of Node that breaks NPM. Normally to update NPM I'd use 'n':




            sudo npm i -g n



            sudo n stable




            But as NPM doesn't work with this version of Node that's not happening.



            I found this How can I update my nodeJS to the latest version? and used:




            sudo apt-get install curl



            curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -



            sudo apt-get install -y nodejs




            Now Node version is: 8.9.4, and NPM can once again be updated as usual; and you can also use NPM to install 'n' and update Node however you want if you need a specific version.



            Then you can install git to clone your app or do whatever.



            You've probably already solved your problem, but offering a possible solution in case anyone else is after one.






            share|improve this answer























              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',
              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%2faskubuntu.com%2fquestions%2f966368%2fis-it-possible-to-install-node-js-and-npm-on-ubuntu-core%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              1














              If you need Nodejs for your application, convert your application to snap (with snapcraft) and install it snap install <your application> . Nodejs is then packaged in the snap and you do not need to extra install it. Otherwise may be Ubuntu Server is better suited for you.






              share|improve this answer




























                1














                If you need Nodejs for your application, convert your application to snap (with snapcraft) and install it snap install <your application> . Nodejs is then packaged in the snap and you do not need to extra install it. Otherwise may be Ubuntu Server is better suited for you.






                share|improve this answer


























                  1












                  1








                  1







                  If you need Nodejs for your application, convert your application to snap (with snapcraft) and install it snap install <your application> . Nodejs is then packaged in the snap and you do not need to extra install it. Otherwise may be Ubuntu Server is better suited for you.






                  share|improve this answer













                  If you need Nodejs for your application, convert your application to snap (with snapcraft) and install it snap install <your application> . Nodejs is then packaged in the snap and you do not need to extra install it. Otherwise may be Ubuntu Server is better suited for you.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 14 '18 at 13:42









                  Rustam IsaevRustam Isaev

                  514




                  514

























                      0














                      This worked for me.



                      I used the info here: Install applications in Ubuntu core




                      sudo snap install classic --devmode --edge




                      then




                      sudo classic




                      To enable aptitude, then your normal:




                      sudo apt-get install nodejs nodejs-legacy npm



                      sudo npm i -g npm




                      To get NPM to version: 3.5.2 and Node to: 4.2.6



                      Then NPM can't be updated further this way, as it complains about the version of Node that breaks NPM. Normally to update NPM I'd use 'n':




                      sudo npm i -g n



                      sudo n stable




                      But as NPM doesn't work with this version of Node that's not happening.



                      I found this How can I update my nodeJS to the latest version? and used:




                      sudo apt-get install curl



                      curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -



                      sudo apt-get install -y nodejs




                      Now Node version is: 8.9.4, and NPM can once again be updated as usual; and you can also use NPM to install 'n' and update Node however you want if you need a specific version.



                      Then you can install git to clone your app or do whatever.



                      You've probably already solved your problem, but offering a possible solution in case anyone else is after one.






                      share|improve this answer




























                        0














                        This worked for me.



                        I used the info here: Install applications in Ubuntu core




                        sudo snap install classic --devmode --edge




                        then




                        sudo classic




                        To enable aptitude, then your normal:




                        sudo apt-get install nodejs nodejs-legacy npm



                        sudo npm i -g npm




                        To get NPM to version: 3.5.2 and Node to: 4.2.6



                        Then NPM can't be updated further this way, as it complains about the version of Node that breaks NPM. Normally to update NPM I'd use 'n':




                        sudo npm i -g n



                        sudo n stable




                        But as NPM doesn't work with this version of Node that's not happening.



                        I found this How can I update my nodeJS to the latest version? and used:




                        sudo apt-get install curl



                        curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -



                        sudo apt-get install -y nodejs




                        Now Node version is: 8.9.4, and NPM can once again be updated as usual; and you can also use NPM to install 'n' and update Node however you want if you need a specific version.



                        Then you can install git to clone your app or do whatever.



                        You've probably already solved your problem, but offering a possible solution in case anyone else is after one.






                        share|improve this answer


























                          0












                          0








                          0







                          This worked for me.



                          I used the info here: Install applications in Ubuntu core




                          sudo snap install classic --devmode --edge




                          then




                          sudo classic




                          To enable aptitude, then your normal:




                          sudo apt-get install nodejs nodejs-legacy npm



                          sudo npm i -g npm




                          To get NPM to version: 3.5.2 and Node to: 4.2.6



                          Then NPM can't be updated further this way, as it complains about the version of Node that breaks NPM. Normally to update NPM I'd use 'n':




                          sudo npm i -g n



                          sudo n stable




                          But as NPM doesn't work with this version of Node that's not happening.



                          I found this How can I update my nodeJS to the latest version? and used:




                          sudo apt-get install curl



                          curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -



                          sudo apt-get install -y nodejs




                          Now Node version is: 8.9.4, and NPM can once again be updated as usual; and you can also use NPM to install 'n' and update Node however you want if you need a specific version.



                          Then you can install git to clone your app or do whatever.



                          You've probably already solved your problem, but offering a possible solution in case anyone else is after one.






                          share|improve this answer













                          This worked for me.



                          I used the info here: Install applications in Ubuntu core




                          sudo snap install classic --devmode --edge




                          then




                          sudo classic




                          To enable aptitude, then your normal:




                          sudo apt-get install nodejs nodejs-legacy npm



                          sudo npm i -g npm




                          To get NPM to version: 3.5.2 and Node to: 4.2.6



                          Then NPM can't be updated further this way, as it complains about the version of Node that breaks NPM. Normally to update NPM I'd use 'n':




                          sudo npm i -g n



                          sudo n stable




                          But as NPM doesn't work with this version of Node that's not happening.



                          I found this How can I update my nodeJS to the latest version? and used:




                          sudo apt-get install curl



                          curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -



                          sudo apt-get install -y nodejs




                          Now Node version is: 8.9.4, and NPM can once again be updated as usual; and you can also use NPM to install 'n' and update Node however you want if you need a specific version.



                          Then you can install git to clone your app or do whatever.



                          You've probably already solved your problem, but offering a possible solution in case anyone else is after one.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Feb 4 '18 at 10:14









                          WillWill

                          1




                          1






























                              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.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f966368%2fis-it-possible-to-install-node-js-and-npm-on-ubuntu-core%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

                              How did Captain America manage to do this?

                              迪纳利

                              南乌拉尔铁路局