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.
Reference: #1974 (comment), #1974 (comment)
Vite+ injects a prompt when
npm install -gfinishes 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 -gis 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.