sinopia 是一个可以快速搭建本地npm镜像的服务,安装使用非常简单,最大的好处是可以很方便的管理私有模块

安装

# installation and starting (application will create default
# config in config.yaml you can edit later)
$ npm install -g sinopia
$ sinopia

# 设置npm镜像,当然也可以在具体操作的时候指定 ```npm adduser --registry http://localhost:4873```
$ npm set registry http://localhost:4873/

# if you use HTTPS, add an appropriate CA information
# ("null" means get CA list from OS)
$ npm set ca null