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 npm
if[ -n "$REQUIRED_PNPM_VERSION"];then
echo"Installing pnpm version $REQUIRED_PNPM_VERSION..."