Skip to content

Install failure with no error cause #962

@subpandu

Description

@subpandu

Describe the bug

Trying to install via curl command curl -fsSL https://vite.plus | bash --verbose , the install fails with no cause . The exec stops silently after printing Setting up VITE+...

#!/bin/bash

Vite+ CLI Installer

https://vite.plus

Usage:

curl -fsSL https://vite.plus | bash

Environment variables:

VITE_PLUS_VERSION - Version to install (default: latest)

VITE_PLUS_HOME - Installation directory (default: ~/.vite-plus)

NPM_CONFIG_REGISTRY - Custom npm registry URL (default: https://registry.npmjs.org)

VITE_PLUS_LOCAL_TGZ - Path to local vite-plus.tgz (for development/testing)

set -e

VITE_PLUS_VERSION="${VITE_PLUS_VERSION:-latest}"
INSTALL_DIR="${VITE_PLUS_HOME:-$HOME/.vite-plus}"

Use $HOME-relative path for shell config references (portable across sessions)

if case "$INSTALL_DIR" in "$HOME"/*) true;; *) false;; esac; then
INSTALL_DIR_REF="$HOME${INSTALL_DIR#"$HOME"}"
else
INSTALL_DIR_REF="$INSTALL_DIR"
fi

npm registry URL (strip trailing slash if present)

NPM_REGISTRY="${NPM_CONFIG_REGISTRY:-https://registry.npmjs.org}"
NPM_REGISTRY="${NPM_REGISTRY%/}"

Local tarball for development/testing

LOCAL_TGZ="${VITE_PLUS_LOCAL_TGZ:-}"

Local binary path (set by install-global-cli.ts for local dev)

LOCAL_BINARY="${VITE_PLUS_LOCAL_BINARY:-}"

Setting up VITE+...
detect_platform
uname -s
uname -m
curl_with_error_handling -s "$metadata_url"
curl "${args[@]}" 2>&1

Reproduction

NA

Steps to reproduce

As above

System Info

MAC OS behind corporate proxy

Used Package Manager

npm

Logs

Validations

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions