From 78bf5b50d882c8e9a0907f7be16498de9927feb2 Mon Sep 17 00:00:00 2001 From: Wildan M Date: Sat, 21 Sep 2024 23:32:44 +0700 Subject: [PATCH] Fix npm --- src/executor/runnercode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/executor/runnercode.js b/src/executor/runnercode.js index 623ecfc..c5eb132 100644 --- a/src/executor/runnercode.js +++ b/src/executor/runnercode.js @@ -73,7 +73,7 @@ export async function runConfigCodeFeatures(key, value, writeLog, domaindata, ss arg = "@" + value; } await writeLog("$> Changing Node engine to " + (value || 'lts')); - await sshExec("pathman add .local/opt/node/bin"); + await sshExec("pathman add .local/opt/node/bin ; source ~/.config/envman/PATH.env"); await sshExec(`curl -sS https://webinstall.dev/node${arg} | bash`); 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`)