From b56d118c2e91ad0115d27a70d7de827c809388a2 Mon Sep 17 00:00:00 2001 From: Home Date: Sat, 28 Mar 2026 21:29:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4jenkins=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E5=8C=96=E6=B5=81=E6=B0=B4=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .npmrc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.npmrc b/.npmrc index 0c65878f..4af19457 100644 --- a/.npmrc +++ b/.npmrc @@ -11,4 +11,14 @@ node-linker=hoisted ignore-deprecations=all # 忽略对等依赖警告 -strict-peer-dependencies=false \ No newline at end of file +strict-peer-dependencies=false + +# 淘宝镜像(加速下载) +registry=https://registry.npmmirror.com + +# 把缓存放到项目目录里,解决 Jenkins 权限问题 +cache=.npm +prefix=.npm-global + +# 安全关闭一些权限问题 +unsafe-perm=true \ No newline at end of file