Skip to content

Commit

Permalink
build(base): Workaround nvm install issues
Browse files Browse the repository at this point in the history
  • Loading branch information
rpatterson committed Oct 16, 2023
1 parent 3928715 commit 91018fc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,7 @@ clean:
./.env.~out~: ./.env.in
$(call expand_template,$(<),$(@))

./var/log/npm-install.log: ./package.json
$(MAKE) "./var/log/nvm-install.log"
./var/log/npm-install.log: ./package.json ./var/log/nvm-install.log
mkdir -pv "$(dir $(@))"
~/.nvm/nvm-exec npm install | tee -a "$(@)"

Expand All @@ -487,7 +486,7 @@ $(HOME)/.npmrc:
$(MAKE) "$(HOME)/.nvm/nvm.sh"
mkdir -pv "$(dir $(@))"
set +x
. "$(HOME)/.nvm/nvm.sh"
. "$(HOME)/.nvm/nvm.sh" || true
nvm install | tee -a "$(@)"

# Manage JavaScript/TypeScript packages:
Expand Down

0 comments on commit 91018fc

Please sign in to comment.