![]() ![]() If you used Vi to add this, you can save and quit the file easily by hitting the "escape" key to exit out of insert mode, then hold "shift" and press "Z" twice to save and quit. bash_profile file: export NVM_DIR="$HOME/.nvm" bash_profile inside your home directory:Īdd the 2 lines to the bottom of the. Use a text editor (Vi or Nano would work well) to open (or create, if it doesn't exist yet) a file called. ![]() Run mkdir ~/.nvm (again, from anywhere in terminal).Once that completes, follow the instructions that print to the screen: We'll use the freshly-installed Homebrew to install nvm:įrom terminal (from any directory): brew install nvm NVM is the Node Version Manager, which makes installing and switching between multiple release versions of Node.js really easy. Follow the instructions by copying/pasting the bash command into your terminal (from any directory, doesn't matter where).It essentially gives you a way to install certain programs (usually developer-y ones) directly from the command line. Homebrew is an excellent package manager for MacOS-specific programs. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |