From 7be6ff06b61b9949f4821287ded64c3ec041356c Mon Sep 17 00:00:00 2001 From: dongsk Date: Thu, 3 Sep 2026 11:59:29 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=89=8D=E7=AB=AF=20npm=20?= =?UTF-8?q?=E9=95=9C=E5=83=8F=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/.npmrc | 1 + frontend/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 frontend/.npmrc diff --git a/frontend/.npmrc b/frontend/.npmrc new file mode 100644 index 0000000..7549542 --- /dev/null +++ b/frontend/.npmrc @@ -0,0 +1 @@ +registry=https://registry.npmmirror.com diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 1cad20e..e428a3b 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -7,7 +7,7 @@ WORKDIR /app COPY package.json package-lock.json* ./ # 安装依赖 -RUN npm install +RUN npm install --registry=https://registry.npmmirror.com # 复制源码 COPY . .