-
Notifications
You must be signed in to change notification settings - Fork 125
Closed
Copy link
Description
Summary
The install script (curl -fsSL https://vite.plus | bash) prompts for user input when run as a postCreateCommand in GitHub Codespaces devcontainers, causing the setup to hang indefinitely.
Reproduction
Create a .devcontainer/devcontainer.json:
{
"name": "Vite+",
"image": "mcr.microsoft.com/devcontainers/typescript-node:4-24-trixie",
"postCreateCommand": "curl -fsSL https://vite.plus | bash"
}Open in GitHub Codespaces. The container creation loops forever because the installer prompts "Would you want Vite+ to manage Node.js versions?" but there's no way to provide input.
Root Cause
In install.sh:473, the interactive check [ -e /dev/tty ] && [ -t 1 ] passes in Codespaces because /dev/tty exists and stdout is attached to a pseudo-terminal during postCreateCommand.
Suggested Fix
Add an environment variable (e.g., VITE_PLUS_NODE_MANAGER=yes|no) to skip the interactive prompt, allowing fully non-interactive installs:
curl -fsSL https://vite.plus | VITE_PLUS_NODE_MANAGER=yes bashReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Fields
Give feedbackPriority
None yet
Effort
None yet