diff --git a/idc-deploy-shell/install-deps.sh b/idc-deploy-shell/install-deps.sh index b7fb66e9a82..a9b973018ea 100644 --- a/idc-deploy-shell/install-deps.sh +++ b/idc-deploy-shell/install-deps.sh @@ -26,8 +26,8 @@ apt-get update -qq apt-get upgrade -y apt-get install -y git -apt-get install -y make # needed by bun install... -apt-get install -y g++ # needed by bun install... +apt-get install -y make # native builds (node-gyp) +apt-get install -y g++ # # Following instructions at https://github.com/nodesource/distributions/blob/master/README.md#deb @@ -36,18 +36,14 @@ apt-get install -y g++ # needed by bun install... curl -sL https://deb.nodesource.com/setup_18.x | bash - apt-get install -y nodejs -# Install yarn and bun using npm (more reliable than curl) -echo "Installing Yarn via npm..." -npm install -g yarn - -echo "Installing Bun via npm..." -npm install -g bun +# Yarn via Corepack — matches package.json "packageManager" (yarn@1.22.22) +echo "Enabling Corepack and Yarn..." +corepack enable +corepack prepare yarn@1.22.22 --activate # Verify installations echo "Installation complete!" echo "Yarn location: $(which yarn)" echo "Yarn version: $(yarn --version)" -echo "Bun location: $(which bun)" -echo "Bun version: $(bun --version)" echo "Libraries Installed"