UNPKG is a fast, global content delivery network for everything on npm.
Please visit the UNPKG website to learn more about how to use it.
Our sponsors and backers are listed in SPONSORS.md.
- 支持http
- 使用
.env文件配置NODE_ENVPORTNPM_REGISTRY_URL - 支持docker https://hub.docker.com/r/huangqing1/unpkg
命令行:
docker run
# 调整为需要的NPM库地址
--env=NPM_REGISTRY_URL=http://10.0.64.86:8888
-p 8080:8080
-d huangqing1/unpkg:1.0.0docker-compose.yml
version: "3"
services:
unpkg:
image: huangqing1/unpkg:1.0.0
environment:
# 使用变量配置需要调整的NPM库地址
- NPM_REGISTRY_URL=https://mirrors.cloud.tencent.com/npm
ports:
- 8080:8080