Skip to content

vite+ installer does not inform what to do when automatic shell configuration fails #1034

@paperclover

Description

@paperclover

Describe the bug

my shell config file isn't writable. honestly an installer shouldn't write to it for any reason without asking.

Reproduction

N/A

Steps to reproduce

  1. make your shell config non-writable
  2. curl -fsSL https://vite.plus | bash

System Info

VITE+ - The Unified Toolchain for the Web

Environment:
  Version  24.14.0
  Source   lts

Tool Paths:
  node  /Users/clo/.vite-plus/js_runtime/node/24.14.0/bin/node
  npm   /Users/clo/.vite-plus/js_runtime/node/24.14.0/bin/npm
  npx   /Users/clo/.vite-plus/js_runtime/node/24.14.0/bin/npx

Used Package Manager

pnpm

Logs

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

Setting up VITE+...
bash: line 332: /Users/clo/.config/zsh/.zshenv: Permission denied
bash: line 333: /Users/clo/.config/zsh/.zshenv: Permission denied
bash: line 334: /Users/clo/.config/zsh/.zshenv: Permission denied
bash: line 332: /Users/clo/.config/zsh/.zshrc: Permission denied
bash: line 333: /Users/clo/.config/zsh/.zshrc: Permission denied
bash: line 334: /Users/clo/.config/zsh/.zshrc: Permission denied

Would you want Vite+ to manage Node.js versions?
Press Enter to accept (Y/n): n

✔ VITE+ successfully installed!

  The Unified Toolchain for the Web.

  Get started:
    vp create       Create a new project
    vp env          Manage Node.js versions
    vp install      Install dependencies
    vp migrate      Migrate to Vite+

  Run vp help to see available commands.

  Note: Run `source ~/.config/zsh/.zshrc` or restart your terminal.

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Priority

    None yet

    Effort

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions