3 ms·
The globally installed packages only take precedence over local packages when you run the binary name from the command line. To get that to stop, you'd have to
by andrew_ 4y ago
The globally installed packages only take precedence over local packages when you run the binary name from the command line. To get that to stop, you'd have to add the local node_modules/.bin to the PATH. Additionally, if you run npx/yarn/pnpx in a package script, it will use the local binary.
> oh that and installing thousands of packages in the project root instead of a sensible place that could be shared per version like bundler and rubygems.
Look into pnpm. It does precisely this in a way that's compatible with node.
Honestly the information is out there to address most people's gripes.
- chakkepolja 4y ago> Honestly the information is out there to address most people's gripes. Exactly, but not discoverable. I came to know of esbuild, vite, pnpm etc.. only because of reddit and HN.
- andrew_ 4y agoYou discovered it because of reddit and HN. Others have dev.to, SO, Twitter, etc. Most devs today have to be mobile and inquisitive. It's not really a field for the complacent.