Skip to content

Commit dce8679

Browse files
valkryptonclaude
andcommitted
fix: fail with clear message when corepack is unavailable in setup.sh
Replaces npm fallback with an explicit error directing users to install Node.js 16.9+, keeping setup.sh pnpm/corepack-only per repo policy. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent b1c78fe commit dce8679

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

setup.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,16 @@ else
7777
success=false
7878
fi
7979

80-
# Activate pnpm (version set in package.json)
80+
# Activate pnpm via corepack
81+
echo -e "${YELLOW}Setting up pnpm...${NC}"
82+
if ! command -v corepack &>/dev/null; then
83+
echo -e "${RED}Error: corepack not found.${NC}"
84+
echo -e "${RED}Install Node.js 16.9+ (which bundles corepack) and re-run this script.${NC}"
85+
echo -e "${RED}See: https://nodejs.org/en/download${NC}"
86+
exit 1
87+
fi
8188
corepack enable pnpm || success=false
89+
8290
# Install Node dependencies
8391
pnpm install || success=false
8492

0 commit comments

Comments
 (0)