direnv: Try nvm use before nvm install
This commit is contained in:
parent
5671204ae6
commit
44f8b04d86
1 changed files with 1 additions and 2 deletions
|
|
@ -64,8 +64,7 @@ use_nvm() {
|
|||
|
||||
source "${NVM_DIR}/nvm.sh"
|
||||
|
||||
# This automatically does `nvm use` afterward.
|
||||
nvm install "$node_version"
|
||||
nvm use "$node_version" || nvm install "$node_version"
|
||||
}
|
||||
|
||||
# From https://github.com/direnv/direnv/wiki/Python#poetry
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue