From 4434c8db264ffa609db3025cd07df130a80af59d Mon Sep 17 00:00:00 2001 From: markerx Date: Wed, 23 Mar 2016 10:28:22 -0600 Subject: [PATCH 1/6] Update README.markdown --- README.markdown | 47 ++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 46 insertions(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index 671a603..164affa 100644 --- a/README.markdown +++ b/README.markdown @@ -39,7 +39,52 @@ Eg: `curl ... | NVM_DIR="path/to/nvm" bash` *NB. The installer can use `git`, `curl`, or `wget` to download `nvm`, whatever is available.* -Note: On OSX, if you get `nvm: command not found` after running the install script, your system may not have a [.bash_profile file] where the command is set up. Simple create one with `touch ~/.bash_profile` and run the install script again. +#### Troubleshooting + +**Step 1:** + +If you are running OSX and receive a `nvm: command not found` error after running the install script, your system may not have a [.bash_profile file] where the command is set up. Simply create one with `touch ~/.bash_profile` and run the install script again. + +Exit and quit terminal. + +Reopen terminal and enter: + +`nvm --version` + +If the "nvm: command not found" continues to persist, continue to Troubleshooting Step 2. + +**Step 2:** + +Open your .bash_profile file which is located in your Home directory, verify that the line following code exist: + +`export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm` + +If not, add the above code and save the file. + +Exit and quit terminal. + +Reopen terminal and enter: + +`nvm --version` + +If the "nvm: command not found" continues to persist, continue to Troubleshooting Step 3. + +**Step 3** + +If Troubleshooting Steps 1 and 2 fails to solve your "nvm: command not found" issue, enter the following code into your terminal command line: + +`source ~/.nvm/nvm.sh` + +Exit and quit terminal. + +Reopen terminal and enter: + +`nvm --version` + +At this point you should see the version number for your NVM install. + +**But beware, this is only a session based solution, which will have to be repeated each time you close your terminal.** ### Manual install From 4755d0da86a4dc09ed670a1b01af6929f55b42c8 Mon Sep 17 00:00:00 2001 From: markerx Date: Wed, 23 Mar 2016 10:32:38 -0600 Subject: [PATCH 2/6] Update README.markdown --- README.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index 164affa..6765f11 100644 --- a/README.markdown +++ b/README.markdown @@ -57,8 +57,8 @@ If the "nvm: command not found" continues to persist, continue to Troubleshootin Open your .bash_profile file which is located in your Home directory, verify that the line following code exist: -`export NVM_DIR="$HOME/.nvm" -[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm` +`export NVM_DIR="$HOME/.nvm"` +`[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm` If not, add the above code and save the file. From f502867a89e36c79f301ad68371698d3019d2451 Mon Sep 17 00:00:00 2001 From: markerx Date: Wed, 23 Mar 2016 10:33:13 -0600 Subject: [PATCH 3/6] Update README.markdown --- README.markdown | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index 6765f11..c95c219 100644 --- a/README.markdown +++ b/README.markdown @@ -57,8 +57,9 @@ If the "nvm: command not found" continues to persist, continue to Troubleshootin Open your .bash_profile file which is located in your Home directory, verify that the line following code exist: -`export NVM_DIR="$HOME/.nvm"` -`[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm` +`export NVM_DIR="$HOME/.nvm" + +[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm` If not, add the above code and save the file. From 150e397314c3449524ede94ef50e908c2a254dc6 Mon Sep 17 00:00:00 2001 From: markerx Date: Wed, 23 Mar 2016 10:35:34 -0600 Subject: [PATCH 4/6] Update README.markdown --- README.markdown | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.markdown b/README.markdown index c95c219..a3345e1 100644 --- a/README.markdown +++ b/README.markdown @@ -57,9 +57,8 @@ If the "nvm: command not found" continues to persist, continue to Troubleshootin Open your .bash_profile file which is located in your Home directory, verify that the line following code exist: -`export NVM_DIR="$HOME/.nvm" - -[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm` + export NVM_DIR="$HOME/.nvm" + [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm If not, add the above code and save the file. From 93750e2df0b20599058cb3e226817c113aa699ce Mon Sep 17 00:00:00 2001 From: markerx Date: Fri, 25 Mar 2016 16:50:04 -0600 Subject: [PATCH 5/6] Update README.markdown --- README.markdown | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.markdown b/README.markdown index a3345e1..dc4590d 100644 --- a/README.markdown +++ b/README.markdown @@ -43,7 +43,7 @@ Eg: `curl ... | NVM_DIR="path/to/nvm" bash` **Step 1:** -If you are running OSX and receive a `nvm: command not found` error after running the install script, your system may not have a [.bash_profile file] where the command is set up. Simply create one with `touch ~/.bash_profile` and run the install script again. +If you are running OSX and receive a `nvm: command not found` error after running the install script, your system may not have a .bash_profile file where the command is set up. Simply create one with `touch ~/.bash_profile` and run the install script again. Exit and quit terminal. @@ -84,7 +84,7 @@ Reopen terminal and enter: At this point you should see the version number for your NVM install. -**But beware, this is only a session based solution, which will have to be repeated each time you close your terminal.** +**But beware, this is only a session based solution, which will have to be repeated each time you open a new terminal.** ### Manual install From ddcdd68fa28b1bc638c7a8d51ce20f8492e49d5a Mon Sep 17 00:00:00 2001 From: Brandon Thompson Date: Fri, 25 Mar 2016 17:23:34 -0600 Subject: [PATCH 6/6] Edit & Rebase --- README.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.markdown b/README.markdown index dc4590d..4c251d2 100644 --- a/README.markdown +++ b/README.markdown @@ -20,7 +20,7 @@ Note: We still have some problems with FreeBSD, because there is no pre-built bi Note: On OSX, if you do not have XCode installed and you do not wish to download the ~4.3GB file, you can install the `Command Line Tools`. You can check out this blog post on how to just that: - [How to Install Command Line Tools in OS X Mavericks & Yosemite (Without Xcode)](http://osxdaily.com/2014/02/12/install-command-line-tools-mac-os-x/) -Homebrew installation is not supported. +**Homebrew installation is not supported.** ### Install script