cnpm
![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcnpm%2Fcnpm.svg?type=shield)
![logo](https://raw.github.com/cnpm/cnpmjs.org/master/logo.png)
cnpm: npm client for npmmirror.com
Requirements
| Minimum | Recommended |
---|
Node.js | 14.18.0 | LTS |
Install
npm install cnpm -g
If you're in China, maybe you should install it from our China mirror:
npm install cnpm -g --registry=https://registry.npmmirror.com
Usage
Support all commands just like npm
.
Sync packages from npm
cnpm sync [moduleName]
Open package document or git web url
cnpm doc [name]
cnpm doc -g [name]
Build your own private registry npm cli
npm install cnpm -g
alias mynpm='cnpm --registry=https://registry.npm.example.com \
--registryweb=https://npm.example.com \
--userconfig=$HOME/.mynpmrc'
Install with original npm cli
cnpm using 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.
cnpm i --by=npm react-native
License
MIT
Contributors
This project follows the git-contributor spec, auto updated at Wed Dec 06 2023 21:42:25 GMT+0800
.
![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcnpm%2Fcnpm.svg?type=large)