Install multiple version of node.js using NVM (Ubuntu)

前端 未结 4 2137
名媛妹妹
名媛妹妹 2021-01-30 07:23

How to install multiple version of node.js in Ubuntu using NVM?

4条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-30 07:40

    Install Node.js with Node Version Manager in linux (Ubuntu, linux mint)


    1. Build essential package

    sudo apt-get install build-essential checkinstall

    2. Get libssl-dev

    sudo apt-get install libssl-dev

    3. Install nvm using cURL

    curl -o- https://raw.githubusercontent.com/cre... | bash

    4. Check installation work

    command -v nvm

    5. List available node versions

    nvm ls-remote

    6. download, compile and install node

    nvm install 6.14.4

    7. Tell nvm which version to use

    nvm use 6.14.4

    8. Set default node version

    nvm alias default node 6.14.4

    More Info

提交回复
热议问题