yfe-ynpm
Version:
遥望网络私有NPM仓库客户端
66 lines (40 loc) • 1.3 kB
Markdown
ynpm
=======
[![NPM version][npm-image]][npm-url]
[npm-image]: https://badgen.net/badge/ynpm/1.0.1/green
[npm-url]: https://git.ywwl.com/ywfe/yfe-ynpm
[](http://npm.ywwl.com/)
遥望网络私有 NPM 仓库客户端。
NPM仓库地址: [http://npm.ywwl.com](http://npm.ywwl.com)
仓库源:[http://registry-npm.ywwl.com](http://registry-npm.ywwl.com)。
代码基于 [cnpm](https://github.com/cnpm/cnpm) 构建。
## 环境要求
- Nodejs 4.0+
## 安装
```bash
$ npm install yfe-ynpm -g
```
从 [淘宝镜像](https://npm.taobao.org) 安装:
```bash
$ npm install yfe-ynpm -g --registry=https://registry.npm.taobao.org
```
## 使用指南
支持 `npm` 所有命令及使用方式.
### 从 `npm` 同步所有包
```bash
$ ynpm sync [moduleName]
```
### 打开包文档或git地址
```bash
$ ynpm doc [name]
$ ynpm doc -g [name] # open git web url directly
```
## 从 npm 官方源安装包
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
$ ynpm i --by=npm react-native
```
## License
[MIT](LICENSE.txt)