Ubuntu Server 18.04 installs node via NVM

Source: Internet
Author: User

  • Install Python (node relies on python2 in many places, and Ubuntu Server 18.04 defaults to no Python2)

  • sudo apt install python
      • NVM Official Warehouse: HTTPS://GITHUB.COM/CREATIONIX/NVM

      • Installation

    curl-o-https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | Bashsource ~/.bashrccommand-v NVM # The installation succeeds printing NVM;
      • Version view

    NVM LS # view local version NVM Ls-remote # view Remote available versions
      • Installing node 8.11.2

    NVM install v8.11.2# can also be installed by mirroring Nvm_nodejs_org_mirror=https://npm.taobao.org/mirrors/node NVM installation v8.11.2
      • View the node version currently in use

    ~$ NVM use Nodenow using node v8.11.2 (NPM v5.6.0)


    "Related reading"

      • node. js Tips


    Walker * * *


    Ubuntu Server 18.04 installs node via NVM

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.