Skip to content

sebholstein/npmirror

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

npmirror - A lazy NPM mirror

WIP - Things will change! npmirror is a local NPM cache/mirror to make your NPM installs faster.

Install

  1. Install Go
  2. Run go install github.com/sebastianm/npmirror

Usage

Run npmirror at least with the -external-addr flag:

Usage of npmirror:
  -external-addr="": Required! External HTTP address (registry address)
  -http-addr="127.0.0.1:8023": httpd bind address
  -storage-file-dir="./npmirror": Storage directory for all cached NPM files
  -storage-type="file": Storage Type (only 'file' available in this version)

NPM Registry Configuration

You have to tell NPM to use your hosted npmirror. Replace [EXTERNAL_ADDR] with the address provided in -external-addr flag`.

To temporarily set the NPM registry:

npm --registry [EXTERNAL_ADDR] install angular

To permanently set the NPM registry:

npm config set registry [EXTERNAL_ADDR]

Author & License

Sebastian Müller (SebastianM - @Sebamueller) License: MIT

TODO

  1. Add tests
  2. Make registry upstream configurable
  3. Better logging mechanism

About

NPM (Node Package Manager) Mirror written in GO

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages