REA .npmrc notes (unofficial)
.npmrc pins npm client config identity. In REA 6.7.x, treat selected non-secret registry / engine-strict / save-exact pins as Evidence beside archive/package routes — complementing rea-npm-package-json without inventing APIs. Never paste auth tokens.
Mental model
- Authorize the project
.npmrc(+ artifacts you hold). - Quote selected non-secret keys only; redact
_authToken, passwords, and private registry credentials. - Cousins → rea-npm-package-json · rea-nvmrc · rea-pnpm-workspace.
- Bind absolute paths honestly → rea-absolute-paths.
- Do not invent an npmrc API REA never called.
Minimal path
# authorized project .npmrc (+ artifact you hold)
# quote selected NON-SECRET keys into case notes; redact tokens
# cousins → npm-package-json / nvmrc / pnpm-workspace
# REA package/archive routes on /absolute/path/artifact --json
# do not invent: rea inspect_npmrc .
Compare
| Artifact | Honest posture |
|---|---|
| .npmrc (non-secret) | Registry / client-config identity facts |
| package.json cousin | rea-npm-package-json |
| nvmrc cousin | rea-nvmrc |
| Evidence binder | rea-evidence-explained |
Scope we will not cover
- No inventing
inspect_npmrc/ automatic registry auth. - No credential theft — never quote
_authToken/ passwords. - No pirate redistribution of paid packages.
- No crack framing via npmrc pins.
RepoRead is unofficial. Prefer config honesty + DISCLAIMER.md.
FAQ
How is this different from rea-npm-package-json / rea-nvmrc?
Those pages cover package.json / .nvmrc Evidence. This page zooms on .npmrc config identity — it does not overwrite those pages.
Is there inspect_npmrc in 6.7.0?
Not assumed. Quote non-secret registry/engine-strict pins you actually open. Do not invent inspect_npmrc.
Does REA talk to npm registries or use auth tokens?
No. Local trees only. Never quote _authToken / passwords. No credential theft.
project .npmrc vs user ~/.npmrc?
Label Evidence by the file present. Prefer project-scoped files you are authorized to open.
npm version checked?
rea-agents 6.7.0 (re-checked 2026-10-24).