Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stagas/npm-server
local npm registry w/ real registry fallback
https://github.com/stagas/npm-server
Last synced: 13 days ago
JSON representation
local npm registry w/ real registry fallback
- Host: GitHub
- URL: https://github.com/stagas/npm-server
- Owner: stagas
- Created: 2013-08-02T19:23:31.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-08-02T19:28:34.000Z (over 11 years ago)
- Last Synced: 2024-04-08T15:45:27.359Z (7 months ago)
- Language: JavaScript
- Size: 43 KB
- Stars: 40
- Watchers: 7
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
# npm-server
local npm registry w/ real registry fallback
## Features
- Install packages from a local dir.
- Fallback to real registry for foreign modules and everything else.## Install
```sh
$ npm install npm-server -g
```## Usage
```
Usage: npm-server [options] [dir]
Options:
-h, --help output usage information
-V, --version output the version number
-H, --host server host [localhost]
-p, --port server port [6070]
-e, --expire cache expire time [60]```
## Example
Run the registry server:
```sh
$ npm-server
```Then install packages, instructing npm to use our registry:
```sh
$ npm --registry=http://localhost:6070/ install colors
```Or, you can also use it permanently:
```sh
$ npm set registry http://localhost:6070/
```## WARNING
This project is a DEVELOPMENT tool. It does not aim to be 100% compliant with the npm registry. The only command implemented is `install`. The rest of npm commands like `publish`, `adduser`, `owner` etc. will be forwarded to the REAL npm registry, so use with caution. You've been warned.
## License
MIT