cnpm
=======
[![NPM version][npm-image]][npm-url]
[![build status][travis-image]][travis-url]
[![appveyor build status][appveyor-image]][appveyor-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
[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)
## Requirements
| | Minimum | Recommended |
|--------|---------|-------------|
| NodeJS | 4.0.0 | stable |
## 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://r.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 \
--userconfig=$HOME/.mynpmrc'
```
## Install with original npm cli
cnpm using [npminstall](https://github.com/cnpm/npminstall) by default.
If you don't like symlink mode for `node_modules`, you can change the installer to original npm.
But you will lose the fastest install speed.
```bash
$ cnpm i --by=npm react-native
```
## License
[MIT](LICENSE.txt)
没有合适的资源?快使用搜索试试~ 我知道了~
cnpm:cnpm:npm中国镜像的npm客户
共29个文件
js:8个
json:3个
md:2个
需积分: 41 2 下载量 162 浏览量
2021-02-22
05:17:43
上传
评论
收藏 20KB ZIP 举报
温馨提示
cnpm CNPM:对于NPM客户 要求 最低限度 推荐的 节点JS 4.0.0 稳定的 安装 $ npm install cnpm -g 如果您在中国,也许应该从我们的安装它: $ npm install cnpm -g --registry=https://r.npm.taobao.org 用法 支持所有命令,就像npm一样。 从npm同步软件包 $ cnpm sync [moduleName] 打开包文档或git网站网址 $ cnpm doc [name] $ cnpm doc -g [name] # open git web url directly 建立自己的私人注册表npm cli $ npm install cnpm -g # then alias it $ alias mynpm= ' cnpm --registry=http://registry.npm.ex
资源推荐
资源详情
资源评论
收起资源包目录
cnpm-master.zip (29个子文件)
cnpm-master
.travis.yml 208B
.eslintrc 37B
bin
cnpm-web 154B
cnpm-search 219B
cnpm-doc 887B
cnpm-user 202B
cnpm 472B
cnpm-sync 5KB
cnpm-check 1KB
package.json 2KB
test
custom-installer.test.js 1KB
cnpm.test.js 6KB
auto-fix-bug-versions.test.js 752B
fixtures
userconf-no-registry 0B
foo
package.json 20B
userconf 69B
npm-installer
package.json 124B
home
.cnpmrc 37B
appveyor.yml 319B
AUTHORS 529B
.gitignore 165B
History.md 8KB
lib
config.js 1KB
utils.js 353B
origin_npm.js 2KB
parse_argv.js 4KB
help.js 2KB
README.md 2KB
LICENSE.txt 1KB
共 29 条
- 1
资源评论
陈菌菇
- 粉丝: 28
- 资源: 4553
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功