Online Tools Toolshu.com Log In Sign Up

Taobao NPM Mirror (npmmirror) ICON

Taobao NPM Mirror (npmmirror)

https://npmmirror.com/

automatic jump after -s...

Website Introduction

Website Overview

Formerly Taobao NPM Mirror, npmmirror is a complete read-only mirror of npmjs.com optimized for the network environment in Mainland China. Deployed in Alibaba Cloud's Hangzhou data center, it eliminates the need for cross-border transmission, effectively resolving issues such as slow access speeds and connection timeouts when developers in Mainland China access the official NPM source. It is a widely used package management mirror service among developers in the region.

Core Functions

  • High-frequency Synchronization: It adopts a scheduled synchronization mechanism, synchronizing with the official npmjs.com source every 10 minutes to ensure maximum consistency between the mirror and the official version.
  • Multi-method Package Installation: It supports temporarily using the mirror source for package installation or permanently setting it as the default source. Users can also install the customized cnpm tool as an alternative to npm and execute cnpm install [name] for fast module installation.
  • Active Module Synchronization: Users can actively trigger the synchronization of specific modules via the command cnpm sync [package-name] or by visiting the webpage https://npmmirror.com/sync/[package-name].
  • Multi-type Mirror Expansion: Beyond NPM package mirroring, it also provides mirror services for various development-related tools and components such as Node.js, ChromeDriver, and electron.

Usage Configuration Methods

  • Permanently configure the mirror source: Run the command npm config set registry https://registry.npmmirror.com/.
  • Install the cnpm tool: Run the command npm install -g cnpm --registry=https://registry.npmmirror.com/.
  • Temporarily use the mirror: Add a parameter during package installation with the command npm install express --registry=https://npmmirror.com/.

Supplementary Notes

This mirror only provides read-only services and does not support package publishing. If a module is not yet synchronized during installation, the system will automatically synchronize it in the background and temporarily retrieve the module from the official source for the user's installation.

发现周边 发现周边
Comment area

Loading...