Skip to content

Commit ee49a5d

Browse files
authored
feat(asdf): Add ASDF_NODEJS_LEGACY_FILE_DYNAMIC_STRATEGY (#58)
This commit adds the `ASDF_NODEJS_LEGACY_FILE_DYNAMIC_STRATEGY` environment variable to the zshrc file. This variable is used to ensure that the latest installed version of Node.js is used by asdf.
1 parent a9c16f2 commit ee49a5d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

zshrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@ if [ -d $ASDF_HOME/completions/ ]; then
187187
[ -f $ASDF_HOME/completions/asdf.bash ] && source $ASDF_HOME/completions/asdf.bash
188188
fi
189189

190+
export ASDF_NODEJS_LEGACY_FILE_DYNAMIC_STRATEGY=latest_installed
190191
[ -f $ASDF_HOME/asdf.sh ] && source $ASDF_HOME/asdf.sh
191192
[ -f $ASDF_HOME/plugins/golang/set-env.zsh ] && source $ASDF_HOME/plugins/golang/set-env.zsh
192193
[ -f $ASDF_HOME/plugins/java/set-java-home.zsh ] && source $ASDF_HOME/plugins/java/set-java-home.zsh
@@ -220,3 +221,4 @@ fi
220221
# asdf install gcloud latest
221222
# 3. Set global version
222223
# asdf global gcloud latest
224+

0 commit comments

Comments
 (0)