Skip to content

Do not change system configuration without asking the user #1985

Description

@tsukinoko-kun

Describe the bug

When I installed Vite+ on my Mac, I was first annoyed that it ignored all conventions it could have used and instead created ~/.vite-plus. I expected it to either use ~/Library/Application Support/vite-plus, $XDG_DATA_HOME/vite-plus or something similar.
I aborted the installation immediately. I set VP_HOME, deleted ~/.vite-plus and got greeted by a shell error:

source: Error encountered while sourcing file '/Users/frank/.vite-plus/env.fish':
source: No such file or directory

Please do not change my system configuration without asking me.

Not even working:

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

Setting up VITE+...

Would you like Vite+ to manage your Node.js versions?
It adds `node`, `npm`, `npx`, and `corepack` shims to ~/.vite-plus/bin/ and automatically uses the right version.
Opt out anytime with `vp env off`.
Press Enter to accept (Y/n): ^C⏎

> echo $VP_HOME
/Users/frank/Library/vite-plus

Steps to reproduce

Run curl -fsSL https://vite.plus | bash on Mac.

System Info

fish: Unknown command: vp

Used Package Manager

pnpm

Logs

Validations

Metadata

Metadata

Assignees

No one assigned

    Type

    Priority

    None yet

    Effort

    None yet

    Target date

    None yet

    Start date

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions