Skip to main content
Root serves patched npm packages under the @rootio/ scope. Use pnpm.overrides in package.json to route the original package to its Root-patched equivalent.

Authentication

npm config set registry https://pkg.root.io/npm/ --location=project &&
npm config set //pkg.root.io/npm/:_authToken YOUR_ROOT_TOKEN --location=project

Update package.json

pnpm remove axios
{
  "dependencies": {
    "axios": "npm:@rootio/axios@1.6.0"
  },
  "pnpm": {
    "overrides": {
      "axios": "npm:@rootio/axios@1.6.0"
    }
  }
}

Install

pnpm install

Troubleshooting

IssueSolution
401 UnauthorizedVerify your token: npm config get //pkg.root.io/npm/:_authToken
Overrides not applyingUse pnpm.overrides (not top-level overrides) for pnpm