# cnpm **Repository Path**: junli/cnpm ## Basic Information - **Project Name**: cnpm - **Description**: cnpm: npm client for China mirror of npm - **Primary Language**: JavaScript - **License**: MIT - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2023-12-12 - **Last Updated**: 2024-07-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README cnpm ======= [![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![appveyor build status][appveyor-image]][appveyor-url] [![Gittip][gittip-image]][gittip-url] [![David deps][david-image]][david-url] [npm-image]: https://img.shields.io/npm/v/cnpm.svg?style=flat [npm-url]: https://npmjs.org/package/cnpm [travis-image]: https://img.shields.io/travis/cnpm/cnpm.svg?style=flat [travis-url]: https://travis-ci.org/cnpm/cnpm [appveyor-image]: https://ci.appveyor.com/api/projects/status/17kfr8eitdi7rljr?svg=true [appveyor-url]: https://ci.appveyor.com/project/fengmk2/urllib [gittip-image]: https://img.shields.io/gittip/fengmk2.svg?style=flat [gittip-url]: https://www.gittip.com/fengmk2/ [david-image]: https://img.shields.io/david/cnpm/cnpm.svg?style=flat [david-url]: https://david-dm.org/cnpm/cnpm ![logo](https://raw.github.com/cnpm/cnpmjs.org/master/logo.png) cnpm: npm client for [cnpmjs.org](https://cnpmjs.org) ## Install ```bash $ npm install cnpm -g ``` If you're in China, maybe you should install it from our [China mirror](https://npm.taobao.org): ```bash $ npm install cnpm -g --registry=https://registry.npm.taobao.org ``` ## Usage Support all commands just like `npm`. ### Sync packages from `npm` ```bash $ cnpm sync [moduleName] ``` ### Open package document or git web url ```bash $ cnpm doc [name] $ cnpm doc -g [name] # open git web url directly ``` ## Build your own private registry npm cli ```bash $ npm install cnpm -g # then alias it $ alias mynpm='cnpm --registry=http://registry.npm.example.com \ --registryweb=http://npm.example.com \ --cache=$HOME/.mynpm/.cache \ --userconfig=$HOME/.mynpmrc' ``` ## License [MIT](LICENSE.txt)