Files
fengmk2 39cf77ae0f refactor: use remote abbreviated version data (#1675)
avoid npm abbreviated version fields change

closes https://github.com/cnpm/cnpmjs.org/issues/1667

and starting use the new domain: npmmirror.com
2021-11-07 23:38:32 +08:00
..

cnpmjs.org: Private npm registry and web for Company

So cnpm is meaning: Company npm.

Registry

total packages total package versions total delete packages
downloads today downloads in this week downloads in this month
downloads in the last day downloads in the last week downloads in the last month

Sync Status

Last sync time is .

The sync worker is working in the backend now.
packages need to be sync packages and dependencies waiting for sync % progress
packages and dependencies sync successed packages and dependencies sync failed last success:
<script src="/js/readme.js"></script>

Badges

Default style is flat-square.

Version

Badge URL: https://cnpmjs.org/badge/v/cnpmjs.org.svg cnpmjs.org-version-badge

  • <0.1.0 & >=0.0.0: red-badge
  • <1.0.0 & >=0.1.0: red-badge
  • >=1.0.0: red-badge

Downloads

Badge URL: https://cnpmjs.org/badge/d/cnpmjs.org.svg cnpmjs.org-download-badge

Usage

use our npm client cnpm(More suitable with cnpmjs.org and gzip support), you can get our client through npm:

$ npm install -g cnpm --registry=https://registry.npmmirror.com

Or you can alias NPM to use it:

alias cnpm="npm --registry=https://registry.npmmirror.com \
--cache=$HOME/.npm/.cache/cnpm \
--disturl=https://npmmirror.com/mirrors/node \
--userconfig=$HOME/.cnpmrc"

#Or alias it in .bashrc or .zshrc
$ echo '\n#alias for cnpm\nalias cnpm="npm --registry=https://registry.npmmirror.com \
  --cache=$HOME/.npm/.cache/cnpm \
  --disturl=https://npmmirror.com/mirrors/node \
  --userconfig=$HOME/.cnpmrc"' >> ~/.zshrc && source ~/.zshrc

install

Install package from r.cnpmjs.org. When installing a package or version does not exist, it will try to install from the official registry(registry.npmjs.org), and sync this package to cnpm in the backend.

$ cnpm install [name]

sync

Only cnpm cli has this command. Meaning sync package from source npm.

$ cnpm sync connect

sync package on web: sync/connect

$ open http://registry.npmmirror.com/sync/connect

publish / unpublish

Only admin user can publish / unpublish package to private registry.

$ cnpm publish [name]
$ cnpm unpublish [name]

Other commands

Support all the other npm commands. e.g.:

$ cnpm info cnpm

TODO list

@see Github Issues

Histories

Release History.

npmjs.org, cnpmjs.org and npmmirror.com relation

npm&cnpm

Sponsors

  • 阿里云 阿里云云效 (2016.2 - now)
  • UCloud云计算 (2015.3 - 2016.3)