Merge pull request #622 from ohcibi/master
Prefer tee over > to maximize compatibility
diff --git a/README.markdown b/README.markdown
index 22e98ac..d1c9143 100644
--- a/README.markdown
+++ b/README.markdown
@@ -71,6 +71,10 @@
nvm install unstable
nvm use stable
nvm run unstable --version
+
+If you want to install `io.js`:
+
+ nvm install iojs
If you want to use the system-installed version of node, you can use the special default alias "system":
@@ -100,6 +104,13 @@
NVM_NODEJS_ORG_MIRROR=https://nodejs.org/dist nvm install 0.10
+To use a mirror of the iojs binaries, set `$NVM_IOJS_ORG_MIRROR`:
+
+ export NVM_IOJS_ORG_MIRROR=https://iojs.org/dist
+ nvm install iojs-v1.0.3
+
+ NVM_IOJS_ORG_MIRROR=https://iojs.org/dist nvm install iojs-v1.0.3
+
`nvm use` will not, by default, create a "current" symlink. Set `$NVM_SYMLINK_CURRENT` to "true" to enable this behavior, which is sometimes useful for IDEs.
## License
diff --git a/install.sh b/install.sh
index a0287f2..c006b47 100755
--- a/install.sh
+++ b/install.sh
@@ -57,7 +57,7 @@
install_nvm_from_git() {
if [ -d "$NVM_DIR/.git" ]; then
- echo "=> nvm is already installed in $NVM_DIR, trying to update"
+ echo "=> nvm is already installed in $NVM_DIR, trying to update using git"
printf "\r=> "
cd "$NVM_DIR" && (command git fetch 2> /dev/null || {
echo >&2 "Failed to update nvm, run 'git fetch' in $NVM_DIR yourself." && exit 1
@@ -82,7 +82,7 @@
# Downloading to $NVM_DIR
mkdir -p "$NVM_DIR"
if [ -d "$NVM_DIR/nvm.sh" ]; then
- echo "=> nvm is already installed in $NVM_DIR, trying to update"
+ echo "=> nvm is already installed in $NVM_DIR, trying to update the script"
else
echo "=> Downloading nvm as script to '$NVM_DIR'"
fi