cnpm vs npminstall
cnpm
github.comnpminstall
github.comSide by side
| Figure | cnpm | npminstall |
|---|---|---|
| Price from | — | — |
| Free plan | — | — |
| Free trial | — | — |
| Open source | — | — |
| Windows | Yes | Yes |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| Self-hosted | Yes | — |
| Plans published | 0 | 0 |
| Spec score · JavaScript Package Managers | 7.6 (#11) | 5.8 (#19) |
In their own words
cnpm
cnpm is an npm client for the China mirror of npm. It supports npm commands for package installation and synchronization, and can open package documentation or a Git web URL. Global installation uses `npm install cnpm -g`, and the minimum Node.js version is 20, with LTS recommended. Users can configure a custom registry, registry web address, and user configuration file to create a private-registry npm CLI. cnpm uses npminstall by default, though the original npm installer can be selected at the stated cost of losing the fastest install speed. The mirror is read-only and aims to synchronize with the official service in real time, so write-related operations are excluded. npminstall accepts folders, tarballs, URLs, registry packages, and Git URLs. Its options include ignoring lifecycle scripts, omitting optional dependencies, enforcing registry-only installs, and forbidding specified licenses. It cannot install from shrinkwrap files, and failed installs are best retried after cleaning `node_modules`. The project is MIT licensed and recommends migrating to utoo, described as a modern npm package manager. cnpm runs on Linux, macOS, Windows, and self-hosted environments.