User Tools

Site Tools


nvm

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
nvm [2021/12/21 07:57] chifeknvm [2023/09/14 06:06] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
  
-===== Now, you system is ready for the installation. Update the Homebrew package list and install NVM. =====+Now, you system is ready for the installation. Update the Homebrew package list and install NVM.
  
 <code> <code>
Line 10: Line 10:
  
  
-===== Next, create a directory for NVM in home. =====+Next, create a directory for NVM in home.
  
 <code> <code>
Line 17: Line 17:
  
  
-===== Now, configure the required environment variables. Edit the following configuration file in your home directory: =====+Now, configure the required environment variables. Edit the following configuration file in your home directory
  
 <code> <code>
Line 23: Line 23:
 </code> </code>
 and, add below lines to ~/.bash_profile ( or ~/.zshrc for macOS Catalina or later) and, add below lines to ~/.bash_profile ( or ~/.zshrc for macOS Catalina or later)
 +
 +
 +<code>
 +export NVM_DIR=~/.nvm
 +source $(brew --prefix nvm)/nvm.sh
 +</code>
 +
 +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.
 +
 +
 +<code>
 +source ~/.bash_profile
 +</code>
 +
 +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:
 +
 +<code>
 +nvm ls-remote
 +</code>
 +
 +
 +Install node for M1 arch:
  
 <code> <code>
nvm.1640073439.txt.gz · Last modified: 2023/09/14 06:06 (external edit)