diff --git a/README.markdown b/README.markdown index 348ead5817b..2a3b6d732d0 100644 --- a/README.markdown +++ b/README.markdown @@ -322,7 +322,11 @@ load-nvmrc() { if [ -n "$nvmrc_path" ]; then local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")") - if [ "$nvmrc_node_version" != "N/A" ] && [ "$nvmrc_node_version" != "$node_version" ]; then + if [ "$nvmrc_node_version" != "N/A" ]; then + if [ "$nvmrc_node_version" != "$node_version" ]; then + nvm use + fi + else nvm install fi elif [ "$node_version" != "$(nvm version default)" ]; then