nodenv is optional

main
Yax 4 years ago
parent b162fb226a
commit 2cd446af10

@ -4,6 +4,7 @@ if [ -f "{{ .extra_ca_cert }}" ]; then
fi fi
export NODE_BUILD_CURL_OPTS=--insecure export NODE_BUILD_CURL_OPTS=--insecure
if [ -d "$HOME/.nvm" ]; then
# Nodenv (https://github.com/nodenv/nodenv) # Nodenv (https://github.com/nodenv/nodenv)
export PATH="$HOME/.nodenv/bin:$PATH" export PATH="$HOME/.nodenv/bin:$PATH"
eval "$(nodenv init -)" eval "$(nodenv init -)"
@ -12,6 +13,6 @@ eval "$(nodenv init -)"
export NVM_DIR="$HOME/.nvm" export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
fi

Loading…
Cancel
Save