Skip to content

Instantly share code, notes, and snippets.

@Alexisvt
Created January 20, 2025 22:27
Show Gist options
  • Save Alexisvt/5df5a7e619e40c838ec0901e47765c2e to your computer and use it in GitHub Desktop.
Save Alexisvt/5df5a7e619e40c838ec0901e47765c2e to your computer and use it in GitHub Desktop.
How to make VSCode and shell recognize the node version listed inside .nvmrc

Description

Add the following code at the end of the .zshrc configuration file.

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
nvm use
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment