20 lines
480 B
Batchfile
20 lines
480 B
Batchfile
@echo off
|
|
chcp 65001 >nul
|
|
echo ========================================
|
|
echo Testing npm Registry Connection
|
|
echo ========================================
|
|
echo.
|
|
|
|
echo Testing registry.npmmirror.com...
|
|
npm config get registry
|
|
echo.
|
|
|
|
echo Testing connection speed...
|
|
time <NUL
|
|
npm ping --registry=https://registry.npmmirror.com
|
|
echo.
|
|
|
|
echo ========================================
|
|
echo If the ping succeeds, your npm mirror is working!
|
|
echo ========================================
|