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