From a02bbc43f13dc4f63611b98352d4b73842035b2b Mon Sep 17 00:00:00 2001 From: siepra Date: Wed, 20 Mar 2024 17:13:14 +0100 Subject: [PATCH] fix: use full npm path in scripts --- aws/scripts/after-install.sh | 2 +- aws/scripts/application-start.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aws/scripts/after-install.sh b/aws/scripts/after-install.sh index 82c9aa4..1b16405 100644 --- a/aws/scripts/after-install.sh +++ b/aws/scripts/after-install.sh @@ -2,4 +2,4 @@ export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion -npm i +/home/ubuntu/.nvm/versions/node/v18.12.1/bin/npm i diff --git a/aws/scripts/application-start.sh b/aws/scripts/application-start.sh index 1599a71..704a00f 100644 --- a/aws/scripts/application-start.sh +++ b/aws/scripts/application-start.sh @@ -2,4 +2,4 @@ export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion -npm run start +/home/ubuntu/.nvm/versions/node/v18.12.1/bin/npm run start