Trying to install node v6, but apt installs v8 [duplicate]












0















This question already has an answer here:




  • Node Package Manager got corrupted in some way, now it cannot be installed

    1 answer




I am running ubuntu 18.04.1 LTS and I need to run node v6.
I am following this tutorial




curl -sL https://deb.nodesource.com/setup_6.x | bash -

# Install Node.js and npm
apt-get install -y nodejs



I can see in the apt-get output



Hit:4 https://deb.nodesource.com/node_6.x bionic InRelease


before installing:



node -v
-su: /usr/bin/node: No such file or directory


after apt-get install -y nodejs



$ node -v
v8.10.0


but for some reason it installs node v8



How can I install v6?










share|improve this question















marked as duplicate by karel, Zanna, Fabby, pomsky, muru Dec 6 at 9:39


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.











  • 2




    thanks Karel, that worked
    – randy
    Dec 5 at 13:23
















0















This question already has an answer here:




  • Node Package Manager got corrupted in some way, now it cannot be installed

    1 answer




I am running ubuntu 18.04.1 LTS and I need to run node v6.
I am following this tutorial




curl -sL https://deb.nodesource.com/setup_6.x | bash -

# Install Node.js and npm
apt-get install -y nodejs



I can see in the apt-get output



Hit:4 https://deb.nodesource.com/node_6.x bionic InRelease


before installing:



node -v
-su: /usr/bin/node: No such file or directory


after apt-get install -y nodejs



$ node -v
v8.10.0


but for some reason it installs node v8



How can I install v6?










share|improve this question















marked as duplicate by karel, Zanna, Fabby, pomsky, muru Dec 6 at 9:39


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.











  • 2




    thanks Karel, that worked
    – randy
    Dec 5 at 13:23














0












0








0








This question already has an answer here:




  • Node Package Manager got corrupted in some way, now it cannot be installed

    1 answer




I am running ubuntu 18.04.1 LTS and I need to run node v6.
I am following this tutorial




curl -sL https://deb.nodesource.com/setup_6.x | bash -

# Install Node.js and npm
apt-get install -y nodejs



I can see in the apt-get output



Hit:4 https://deb.nodesource.com/node_6.x bionic InRelease


before installing:



node -v
-su: /usr/bin/node: No such file or directory


after apt-get install -y nodejs



$ node -v
v8.10.0


but for some reason it installs node v8



How can I install v6?










share|improve this question
















This question already has an answer here:




  • Node Package Manager got corrupted in some way, now it cannot be installed

    1 answer




I am running ubuntu 18.04.1 LTS and I need to run node v6.
I am following this tutorial




curl -sL https://deb.nodesource.com/setup_6.x | bash -

# Install Node.js and npm
apt-get install -y nodejs



I can see in the apt-get output



Hit:4 https://deb.nodesource.com/node_6.x bionic InRelease


before installing:



node -v
-su: /usr/bin/node: No such file or directory


after apt-get install -y nodejs



$ node -v
v8.10.0


but for some reason it installs node v8



How can I install v6?





This question already has an answer here:




  • Node Package Manager got corrupted in some way, now it cannot be installed

    1 answer








package-management nodejs






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 5 at 14:42









Zanna

49.9k13130237




49.9k13130237










asked Dec 5 at 5:08









randy

1113




1113




marked as duplicate by karel, Zanna, Fabby, pomsky, muru Dec 6 at 9:39


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.






marked as duplicate by karel, Zanna, Fabby, pomsky, muru Dec 6 at 9:39


This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.










  • 2




    thanks Karel, that worked
    – randy
    Dec 5 at 13:23














  • 2




    thanks Karel, that worked
    – randy
    Dec 5 at 13:23








2




2




thanks Karel, that worked
– randy
Dec 5 at 13:23




thanks Karel, that worked
– randy
Dec 5 at 13:23










1 Answer
1






active

oldest

votes


















1














thanks to karel



this worked



apt-get remove nodejs
snap install node --classic --channel 6/stable





share|improve this answer




























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    thanks to karel



    this worked



    apt-get remove nodejs
    snap install node --classic --channel 6/stable





    share|improve this answer


























      1














      thanks to karel



      this worked



      apt-get remove nodejs
      snap install node --classic --channel 6/stable





      share|improve this answer
























        1












        1








        1






        thanks to karel



        this worked



        apt-get remove nodejs
        snap install node --classic --channel 6/stable





        share|improve this answer












        thanks to karel



        this worked



        apt-get remove nodejs
        snap install node --classic --channel 6/stable






        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Dec 5 at 13:23









        randy

        1113




        1113















            Popular posts from this blog

            Quarter-circle Tiles

            build a pushdown automaton that recognizes the reverse language of a given pushdown automaton?

            Mont Emei