Nodejs always installing 4.2.6

后端 未结 5 1693
终归单人心
终归单人心 2020-12-31 10:41

I am installing latest version of nodejs in my localhost. But system is always installing the 4.2.6 version.How can i install the latest version.

Commands i have use

5条回答
  •  Happy的楠姐
    2020-12-31 10:49

    For me - the solution was on this page:

    Ref: https://websiteforstudents.com/install-the-latest-node-js-and-nmp-packages-on-ubuntu-16-04-18-04-lts/

    ... for the Latest release, add this PPA..

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

    To install the LTS release, use this PPA

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

提交回复
热议问题