You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow corepack use with default package manager when network disabled COREPACK_ENABLE_NETWORK=0 #704
corepack use should default to the package manager version stored in lastKnownGood.json when network connections are disabled with COREPACK_ENABLE_NETWORK=0.
For example
corepack use yarn
should work if previously Yarn was globally installed:
corepack install -g yarn@<specific-version>
Why is this needed?
Version-independent workflows including for example corepack use yarn should still work with no network available.
Please post this as a separate new issue if you believe it is a bug. Given that your last instruction using npm@6 specifies a partial version, I don't know how this could work without access to the registry, so possibly this could be added to the documentation as a restriction. Whatever the assessment is about your problem description, it is a separate topic in any case.
I would also suggest that you first describe the situation where you only set COREPACK_DEFAULT_TO_LATEST=0 without setting COREPACK_ENABLE_NETWORK=0, including how it currently works, and how you expected it to work.
Activity
yeikel commentedon Nov 11, 2025
It seems that
COREPACK_DEFAULT_TO_LATESTis not working as it should be because the following also does not workMikeMcC399 commentedon Nov 12, 2025
@yeikel
Please post this as a separate new issue if you believe it is a bug. Given that your last instruction using
npm@6specifies a partial version, I don't know how this could work without access to the registry, so possibly this could be added to the documentation as a restriction. Whatever the assessment is about your problem description, it is a separate topic in any case.I would also suggest that you first describe the situation where you only set
COREPACK_DEFAULT_TO_LATEST=0without settingCOREPACK_ENABLE_NETWORK=0, including how it currently works, and how you expected it to work.