Skip to main content
Root serves patched npm packages under the @rootio/ scope. You configure auth, then use overrides in package.json to map the original package name to the Root-patched version.

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

Remove the original package and add the Root-patched version:
npm remove axios
{
  "dependencies": {
    "axios": "npm:@rootio/axios@1.6.0"
  },
  "overrides": {
    "axios": "npm:@rootio/axios@1.6.0"
  }
}

Install

npm install

Troubleshooting

IssueSolution
401 UnauthorizedVerify your token: npm config get //pkg.root.io/npm/:_authToken
Package not foundConfirm @rootio/ scoped package exists for your version
Overrides not applyingEnsure both dependencies and overrides reference the npm:@rootio/ alias