Skip to content

Commit

Permalink
docs: adjust instructions for nvm workaround (#1218)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylemh committed Apr 26, 2023
1 parent 926811f commit 16bf08a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/README.md
Expand Up @@ -368,9 +368,16 @@ For example, for `nvm` that would be:

```shell
# ~/.huskyrc
# This loads nvm.sh and sets the correct PATH before running hook
# This loads nvm.sh, sets the correct PATH before running hook, and ensures the project version of Node
export NVM_DIR="$HOME/.nvm"

[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"

# If you have an .nvmrc file, we use the relevant node version
if [[ -f ".nvmrc" ]]; then
nvm use
fi

```

!> **For some apps (e.g., VS Code), you can resolve this simply by restarting the app. Try this before following any of these steps above!**
Expand Down

0 comments on commit 16bf08a

Please sign in to comment.