🛠️

Install Node.js via its version manager, NVM

2022/12/16に公開約800字
  1. Install NVM. Search latest version tag from the repo.. Here, we use v0.39.2
    $ wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.2/install.sh | bash
    
    For more details, follow the instruction in Installing and Updating section.
  2. Verify. (which nvm will not work, since nvm is a sourced shell function, not an executable binary.)
    $ command -v nvm
    
  3. Install latest Node.js via NVM. (Pick feasible version from here)
    e.g.,
    $ nvm install 19.3.0
    
  4. Enable Node.js you've installed.
    e.g.,
    $ nvm use 19.3.0
    
GitHubで編集を提案

Discussion

ログインするとコメントできます