Better NVM installation

This commit is contained in:
fedor 2023-04-08 19:45:07 -04:00
parent 1629c949a6
commit b24d5c0ffb
1 changed files with 5 additions and 1 deletions

View File

@ -102,7 +102,11 @@ build {
"brew install nvm",
"mkdir ~/.nvm",
"echo \"export NVM_DIR=\"$HOME/.nvm\"\" >> ~/.zprofile",
"echo \"[ -s \"/opt/homebrew/opt/nvm/nvm.sh\" ] && \\. \"/opt/homebrew/opt/nvm/nvm.sh\"\" >> ~/.zprofile",
"echo \"[ -s \"/opt/homebrew/opt/nvm/nvm.sh\" ] && zsh /opt/homebrew/opt/nvm/nvm.sh\" >> ~/.zprofile",
]
}
provisioner "shell" {
inline = [
"source ~/.zprofile",
"nvm install lts/*",
"nvm use --lts",