cool-easter-32542
03/18/2023, 10:38 PMnpm
is installed as a bi-effect of downloading node
. This assumption is fine as long npm is the package manager of choice, and the user doesn't much care which npm version they use.
Describe the solution you'd like
node
distributions now ship with corepack
, a wrapper script for managing package manager versions. Pants should use
this script to install the package manager version users request. Corepack ships with good features, such as a "good known release" list which pants can rely on.
Describe alternatives you've considered
Manage package managers in pants via template tool downloads or sandboxing npm
installations. Essentially re-invent the wheel.
Additional context
🤷♂️
pantsbuild/pantscool-easter-32542
04/18/2023, 8:31 PM