@rootio/ scope. Use resolutions in package.json to route the original package to its Root-patched equivalent. Auth setup differs between Yarn 1 and Yarn 3+.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Configure Yarn (Classic and Berry) to use Root Library Catalog for secure JavaScript packages.
@rootio/ scope. Use resolutions in package.json to route the original package to its Root-patched equivalent. Auth setup differs between Yarn 1 and Yarn 3+.
npm config set registry https://pkg.root.io/npm/ --location=project &&
npm config set //pkg.root.io/npm/:_authToken YOUR_ROOT_TOKEN --location=project
yarn remove axios
{
"resolutions": {
"axios": "npm:@rootio/axios@1.6.0"
}
}
yarn install
yarn config set npmScopes.rootio.npmRegistryServer https://pkg.root.io/npm/ &&
yarn config set 'npmRegistries["//pkg.root.io/npm/"].npmAuthIdent' 'root:YOUR_ROOT_TOKEN'
yarn remove axios
{
"resolutions": {
"axios": "npm:@rootio/axios@1.6.0"
}
}
yarn install
| Issue | Solution |
|---|---|
401 Unauthorized (Yarn 1) | Verify your token: npm config get //pkg.root.io/npm/:_authToken |
401 Unauthorized (Yarn 3) | Check npmAuthIdent is set as root:YOUR_TOKEN (not base64) |
| Resolutions not applying | Confirm the package name in resolutions matches exactly |