![]() ![]() Install your RubyGems with gem and their dependencies with brew. ![]() nvm alias default 16 # Switch to default version on environment. Homebrew complements macOS (or your Linux system). Add nvm to your shell profile: To make nvm available every time you open a new terminal window, you will need to add the following line to your shell profile (e.g., /.bashprofile or /.zshrc): source (brew -prefix nvm)/nvm.sh. $ nvm use 16.14.2 *** # Set specific version to be default. Once you have Homebrew installed, you can use it to install nvm by running the following command: brew install nvm. $ nvm install 16.14.2 # Check locally installed versions. bashprofile if your use bash shell: export NVMDIR/.nvm source (brew -prefix nvm)/nvm.sh Load earlier comments. $ nvm ls-remote # Install specific version. Download ZIP install nvm on mac with zsh shell Raw install-nvm-zsh.txt After install zsh - brew update - brew install nvm - mkdir /.nvm after in your /.zshrc or in. $ source ~/.bash_profile # Verify nvm is installed $ nvm -version *** # Check all available remote versions. export NVM_DIR=~/.nvm source $(brew -prefix nvm)/nvm.sh # Read and execute your updated ~/.bash_profile. ![]() $ mkdir ~/.nvm # Add the following to your ~/.bash_profile. Step 2: Create a directory for NVM mkdir /.nvm/ Step 3: Configure your environmental variables. $ brew install nvm # Create system directory for nvm. I’d like to make a small update to this post, by also mentioning that there’s another approach to easily switch between different node versions, and that is to use Node Version Manager (NVM). If you’re working on multiple projects, and wish to quickly switch between different versions of Node due to compatibility, then Homebrew might come in handy. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |