Skip to content

Commit 50fb098

Browse files
Auto install not exist version in zsh .nvmrc script, close #1272
1 parent 49e8068 commit 50fb098

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ load-nvmrc() {
323323
local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")")
324324

325325
if [ "$nvmrc_node_version" != "N/A" ] && [ "$nvmrc_node_version" != "$node_version" ]; then
326-
nvm use
326+
nvm install
327327
fi
328328
elif [ "$node_version" != "$(nvm version default)" ]; then
329329
echo "Reverting to nvm default version"

0 commit comments

Comments
 (0)