From a5e5e2b76aae87a2d94a18b4e237319ec7c33a06 Mon Sep 17 00:00:00 2001 From: mofeng-git Date: Sun, 4 Aug 2024 12:39:17 +0800 Subject: [PATCH] =?UTF-8?q?Docker=20=E6=9E=84=E5=BB=BA=E6=97=B6=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=20npm=20=E9=95=9C=E5=83=8F=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- testenv/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/testenv/Dockerfile b/testenv/Dockerfile index 588eb37f..b0eed89d 100644 --- a/testenv/Dockerfile +++ b/testenv/Dockerfile @@ -83,7 +83,8 @@ RUN pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple && # https://stackoverflow.com/questions/57534295 WORKDIR /root -RUN npm install htmlhint -g \ +RUN npm config set registry https://registry.npmmirror.com \ + && npm install htmlhint -g \ && npm install pug \ && npm install pug-cli -g \ && npm install @babel/eslint-parser -g