echo"pnpm is already installed with version $CURRENT_PNPM_VERSION, which is older than the required $REQUIRED_PNPM_VERSION. Please update pnpm manually if needed."
fi
fi
else
# Install pnpm using the standalone installer
if[ -n "$REQUIRED_PNPM_VERSION"];then
echo"Installing pnpm version $REQUIRED_PNPM_VERSION..."
curl -fsSL https://get.pnpm.io/install.sh | env PNPM_VERSION=$REQUIRED_PNPM_VERSION sh -