Skip to content

Commit

Permalink
Move update-registry-index out of readme (#97)
Browse files Browse the repository at this point in the history
* Move update-registry-index out of readme

* Update index.md
  • Loading branch information
andrew authored and achingbrain committed Apr 16, 2019
1 parent 5ce01ee commit d36b42c
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,4 @@ build/Release
node_modules
package-lock.json

docs
.env
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,3 @@ Options:
unavailable
[default: "https://registry.npmjs.com"]
```

## Update your registry index

By default we keep a local copy of the npm registry index in your [`mfs`](https://github.com/ipfs/js-ipfs-mfs) at `/npm-registry` and update it when you install new packages. This means for the first request for a given module it will be fetched from npm over http. There is a continously updated copy of the npm registry index with CIDs for all modules being generated by the [`ipfs-npm-registry-mirror`](https://github.com/ipfs-shipyard/ipfs-npm-registry-mirror) - if you'd like to clone this registry index, use the `update-registry-index` subcommand:

```console
$ ipfs-npm update-registry-index
```
9 changes: 9 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Advanced npm-on-ipfs features

## Updating your registry index

By default we keep a local copy of the npm registry index in your [`mfs`](https://github.com/ipfs/js-ipfs-mfs) at `/npm-registry` and update it when you install new packages. This means for the first request for a given module it will be fetched from npm over http. There is a continously updated copy of the npm registry index with CIDs for all modules being generated by the [`ipfs-npm-registry-mirror`](https://github.com/ipfs-shipyard/ipfs-npm-registry-mirror) - if you'd like to clone this registry index, use the `update-registry-index` subcommand:

```console
$ ipfs-npm update-registry-index
```

0 comments on commit d36b42c

Please sign in to comment.