Skip to content

Commit

Permalink
nvm only binary please
Browse files Browse the repository at this point in the history
  • Loading branch information
willnode committed Nov 3, 2024
1 parent bc2a0c6 commit 9c55034
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/executor/runnercode.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export async function runConfigCodeFeatures(key, value, writeLog, domaindata, ss
await writeLog("$> Changing Node engine to " + (value || 'lts'));
const nvmPath = `https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh`;
await sshExec(`command -v nvm &> /dev/null || (curl -o- ${nvmPath} | bash) && source ~/.bashrc`);
await sshExec(`nvm install ${arg} && nvm use ${arg} && nvm alias default ${arg}`);
await sshExec(`nvm install ${arg} -b && nvm use ${arg} && nvm alias default ${arg}`);
await sshExec("command -v corepack &> /dev/null || npm i -g corepack && corepack enable");
await sshExec(`[[ -z $COREPACK_ENABLE_AUTO_PIN ]] && echo "export COREPACK_ENABLE_AUTO_PIN=0" >> ~/.bashrc`)
await sshExec("source ~/.bashrc", false);
Expand Down

0 comments on commit 9c55034

Please sign in to comment.