Skip to content
SPECIFICTION
Get listed

cnpm vs Nub

cnpm

github.com

Nub

nubjs.com

Side by side

FigurecnpmNub
Price from——
Free plan——
Free trial——
Open source——
WindowsYesYes
macOSYesYes
LinuxYesYes
Self-hostedYes—
Plans published00
Spec score · JavaScript Package Managers7.6 (#11)7.3 (#14)
LicenseThe cnpm repository is licensed under MIT.The site links the project license as MIT.

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.

Visit github.com

Nub

Nub is a free, open-source Rust toolkit for running TypeScript, JSX and JavaScript with the stock Node binary. It executes modern syntax, supports tsconfig.json, environment files and data-file imports, and does not require a separate build step. Nub loads .env files, watches entrypoints and imported files, and can provision project-pinned Node versions from .node-version, .nvmrc or engines and devEngines. Its script runner handles lifecycle hooks, npm_* variables, forwarded arguments and workspace filters. The installer works with npm, pnpm and Bun lockfiles; Yarn lockfiles are read-only. Supply-chain controls deny dependency build scripts by default, check OSV advisories and delay releases newer than 24 hours, with nub approve-builds for review. Nub includes nubx, GitHub Actions, a container image and deployment guides. It supports Linux, macOS and Windows on listed x64 and arm64 architectures.

Visit nubjs.com