Skip to content

Commit

Permalink
Merge pull request #2618 from Varying-Vagrant-Vagrants/npm_in_site_pr…
Browse files Browse the repository at this point in the history
…ovisioners

Npm in site provisioners
  • Loading branch information
tomjn authored Jun 21, 2022
2 parents 28104f8 + fc3eb1a commit da182c7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ permalink: /docs/en-US/changelog/
* Fixed an edge case updating NVM via git ( #2604 )
* Disable hardware support for gcrypt to avoid bad VirtualBox implementations ( #2609 )
* Fix unbound variable in `db_backup` ( #2617 )
* Ensured npm and nvm are always available in site provisioners

## 3.9.1 ( 2022 April 13th )

Expand Down
8 changes: 8 additions & 0 deletions provision/provision-site.sh
Original file line number Diff line number Diff line change
Expand Up @@ -490,6 +490,14 @@ if [[ true == "${SKIP_PROVISIONING}" ]]; then
exit 0
fi

# Ensure npm is available
if ! command -v nvm &> /dev/null; then
if [ -f /home/vagrant/.nvm/nvm.sh ]; then
source /home/vagrant/.nvm/nvm.sh
fi
fi
nvm use default

vvv_provision_site_repo

if [[ ! -d "${VM_DIR}" ]]; then
Expand Down

0 comments on commit da182c7

Please sign in to comment.