volta-cli / rfcs

RFCs for changes to Volta
Other
17 stars 14 forks source link

Rethinking Global Packages #45

Closed charlespierce closed 3 years ago

charlespierce commented 4 years ago

Update our handling of global package installs to use existing package manager idioms (e.g. npm i -g) with minimal mental overhead.

Rendered RFC

charlespierce commented 4 years ago

@thoov Good points all around. I definitely think when we have an implementation of this ready, we should do a beta / RC release and get some of our power users to test it out so we can get a feel for how much extra work is done during the migration process.

Updated some of the language and added a section around errors explicitly calling out that they shouldn't affect the success or failure of volta install.

charlespierce commented 4 years ago

Updated to a new proposal that incrementally improves our existing model, instead of throwing it out wholesale.

dherman commented 4 years ago

This seems very promising. I love that it preserves the benefit that once you install a global binary, it keeps working even if you change your Node version. The part I'm still fuzzy on is the precise difference between (a) sandboxing every global package but making them visible to each other for require vs (b) not sandboxing global packages and just installing them directly in a Node version.

charlespierce commented 4 years ago

@dherman Updated to clarify the sections you had questions about, thanks again for the feedback!