nvm
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| nvm [2021/12/21 07:57] – chifek | nvm [2023/09/14 06:06] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 23: | Line 23: | ||
| </ | </ | ||
| and, add below lines to ~/ | and, add below lines to ~/ | ||
| + | |||
| + | |||
| + | < | ||
| + | export NVM_DIR=~/ | ||
| + | source $(brew --prefix nvm)/nvm.sh | ||
| + | </ | ||
| + | |||
| + | Press **ESC + :wq** to save and close your file. | ||
| + | |||
| + | Next, load the variable to the current shell environment. From the next login, it will automatically loaded. | ||
| + | |||
| + | |||
| + | < | ||
| + | source ~/ | ||
| + | </ | ||
| + | |||
| + | That’s it. The NVM has been installed on your macOS system. Go to next step to install Node.js versions with the help of nvm. | ||
| + | |||
| + | |||
| + | First of all, see what Node versions are available to install. To see available versions, type: | ||
| + | |||
| + | < | ||
| + | nvm ls-remote | ||
| + | </ | ||
| + | |||
| + | |||
| + | Install node for M1 arch: | ||
| < | < | ||
nvm.1640073464.txt.gz · Last modified: 2023/09/14 06:06 (external edit)