Skip to content

Improve npm install -g #1986

Description

@liangmiQwQ

Reference: #1974 (comment), #1974 (comment)

Vite+ injects a prompt when npm install -g finishes and create shims to make bins accessible when the npm prefix is not in $PATH. This logic sometimes causes tricky bugs (#1974 (comment)), and there is some overlap with vp install -g responsibilities.

According to #528, #540, npm install -g is used to satisfy users who want to install packages in one certain Node.js's bin directory. And the bin should be usable only when using this Node version.

I believe the there is a room to improve the interaction logic here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Priority

    None yet

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions