Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Npm in site provisioners #2618

Merged
merged 2 commits into from
Jun 21, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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