volta-cli / volta

Volta: JS Toolchains as Code. ⚡
https://volta.sh
Other
11.19k stars 239 forks source link

How should we handle `notion install npx latest`? #206

Open benblank opened 6 years ago

benblank commented 6 years ago

NOTE: this issue predates this project's rename to Volta.

Per discussion on #205, I think we need to clarify how we handle globally installing npx in versions of Node which don't include it (i.e. <8.2.0).

Specifically, how are we going to handle all four scenarios:

dherman commented 5 years ago

Great questions! Some initial thoughts:

dherman commented 5 years ago

That's just a first reaction, though -- in particular I might be wrong about the exact NodeVersion data design. It's possible we just have pub npx: Version and the toolchain (project or user) is where we have a list of packages that could include npx. Either way, I think it makes sense for the default behavior to be that npx comes bundled with npm but you can override it with a specific version of the package.

dherman commented 5 years ago

One more thought re: rollout: we could implement this in a couple steps. At first we can just disallow notion install npx and say the only way to install npx with Notion is to get it bundled with the version of npm you choose.