Files
artifactapi/docs/npm/local.md
T
unkin-agent 7d284391ca
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/build Pipeline was successful
ci/woodpecker/pr/test Pipeline was successful
Merge remote-tracking branch 'origin/master' into benvin/local-npm
# Conflicts:
#	e2e-docker/README.md
#	ui/src/components/UsageInstructions.tsx
2026-10-17 16:48:39 +11:00

542 B

Local npm registry

A local npm repo is a real npm registry: npm publish (scoped and unscoped) and npm install work against /api/v1/local/<repo>/. npm requires an _authToken for the registry before it will publish; any value works.

# .npmrc
registry=https://artifactapi.example.com/api/v1/local/<repo>/
//artifactapi.example.com/api/v1/local/<repo>/:_authToken=unused

Versions are immutable: republishing an existing version is rejected. The dist-tags sent with a publish (latest, or --tag) move to that version.