<#18525 Add support for `corepack` the node packag...
# github-notifications
c
#18525 Add support for `corepack` the node package manager manager Issue created by tobni Is your feature request related to a problem? Please describe. Currently
npm
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/pants