You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 11, 2021. It is now read-only.
deprecation notice: as npm has scaled, the registry architecture has gradually migrated towards
a complex distributed architecture, of which npm-registry-couchapp is only a small part. FOSS
is an important part of npm, and over time we plan on exposing more APIs, and better documenting
the existing API.
npm-registry-couchapp is still a core part of our functionality, but all new registry features are
now added to the micro-services that now make up npm. For this reason, we will not be accepting any
pull requests, or making any changes to this codebase going forward.
For issues with the npmjs.com website, please open an issue on the
npm/www repo. For issues wih the registry
service (for example, slow package downloads, or inability to publish a
package), see the npm/registry repo.
The design doc for The npm Registry CouchApp
Installing
You need CouchDB version 1.4.0 or higher. 1.5.0 or higher is best.
Once you have CouchDB installed, create a new database:
curl -X PUT https://localhost:5984/registry
You'll need the following entries added in your local.ini
The _ prevents any other packages from seeing the setting (with a
password) in their environment when npm runs scripts for those other
packages.
Replicating the Registry
To replicate the registry without attachments, you can point your
CouchDB replicator at https://skimdb.npmjs.com/registry. Note that
attachments for public packages will still be loaded from the public
location, but anything you publish into your private registry will
stay private.
To replicate the registry with attachments, consider using
npm-fullfat-registry.
The fullfatdb CouchDB instance is
deprecated.
Using the registry with the npm client
With the setup so far, you can point the npm client at the registry by
putting this in your ~/.npmrc file:
Where registry.mydomain.com is the hostname where you're running the
thing, and 5984 is the port that CouchDB is running on. If you're
running on port 80, then omit the port altogether.
Then for example you can reference the repository like so:
npm config set registry https://registry.mydomain.com:5984