前端构建走国内镜像: node 用 npmmirror downloadRoot, npm 用 node 自带(provided), front/.npmrc 指向 registry.npmmirror.com; 修复 nodejs.org 直连超时
This commit is contained in:
@@ -0,0 +1 @@
|
||||
registry=https://registry.npmmirror.com
|
||||
@@ -136,7 +136,10 @@
|
||||
<goals><goal>install-node-and-npm</goal></goals>
|
||||
<configuration>
|
||||
<nodeVersion>v20.20.2</nodeVersion>
|
||||
<npmVersion>10.8.2</npmVersion>
|
||||
<!-- provided = 使用 node 自带的 npm, 无需单独下载 -->
|
||||
<npmVersion>provided</npmVersion>
|
||||
<!-- 国内镜像, 避免 nodejs.org 直连超时 -->
|
||||
<downloadRoot>https://npmmirror.com/mirrors/node/</downloadRoot>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
|
||||
Reference in New Issue
Block a user