volta-cli / rfcs

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

knowledge of `npm install -g` and `yarn global` #4

Closed dherman closed 5 years ago

dherman commented 6 years ago

Notion should retain control of the global executables installed by npm or yarn; they should always be shims. This means the npm and yarn shims should alter the behavior of npm install -g and yarn global to do the right thing with setting up/modifying shims.

charlespierce commented 5 years ago

We implemented this by intercepting and throwing an error when a user attempts to globally install, directing them to instead us volta install <package>