npm -> nvm, and minor formatting issues

(Soreλ\a) 2016-07-05 20:34:08 -03:00 committed by GitHub
parent 79d62fb16d
commit 0f26656c2c
1 changed files with 6 additions and 6 deletions

12
nvm.sh
View File

@ -256,15 +256,15 @@ nvm_ensure_version_installed() {
if [ "_$EXIT_CODE" != "_0" ] || ! nvm_is_version_installed "$LOCAL_VERSION"; then if [ "_$EXIT_CODE" != "_0" ] || ! nvm_is_version_installed "$LOCAL_VERSION"; then
VERSION="$(nvm_resolve_alias "$PROVIDED_VERSION")" VERSION="$(nvm_resolve_alias "$PROVIDED_VERSION")"
if [ $? -eq 0 ]; then if [ $? -eq 0 ]; then
nvm_err "N/A: version \"$PROVIDED_VERSION -> $VERSION\" is not yet installed. nvm_err "N/A: version \"$PROVIDED_VERSION -> $VERSION\" is not yet installed."
nvm_err ""
You need to run \"npm install $PROVIDED_VERSION\" to install it before using it." nvm_err "You need to run \"nvm install $PROVIDED_VERSION\" to install it before using it."
else else
local PREFIXED_VERSION local PREFIXED_VERSION
PREFIXED_VERSION="$(nvm_ensure_version_prefix "$PROVIDED_VERSION")" PREFIXED_VERSION="$(nvm_ensure_version_prefix "$PROVIDED_VERSION")"
nvm_err "N/A: version \"${PREFIXED_VERSION:-$PROVIDED_VERSION}\" is not yet installed. nvm_err "N/A: version \"${PREFIXED_VERSION:-$PROVIDED_VERSION}\" is not yet installed."
nvm_err ""
You need to run \"npm install $PROVIDED_VERSION\" to install it before using it." nvm_err "You need to run \"nvm install $PROVIDED_VERSION\" to install it before using it."
fi fi
return 1 return 1
fi fi