node-gyp install 用的源是哪里配置的
他去使用 `https://npm.taobao` 了,
但是我已经配置了下面
D:\software\nvm\v18.20.4>npm config set registry https://registry.npmmirror.com/
D:\software\nvm\v18.20.4>pnpm config set registry https://registry.npmmirror.com/
也配置了
C:\Users\xxx\.npmrc
registry=https://mirrors.huaweicloud.com/repository/npm/
他是从哪里得知要去https://npm.taobao.org 的呀
问题
│ gyp ERR! stack FetchError: request to https://npm.taobao.org/dist/v18.20.4/node-v18.20.4-headers.tar.gz failed, reason: Hostname/IP does not match certificate's altnames: Host: npm.taobao.org. is not in the cert's altn…
log
e-js: Running postinstall script, done in 244ms
node_modules/.pnpm/mongodb-memory-server@10.1.0_socks@2.8.3/node_modules/mongodb-memory-server: Running postinstall script...
node_modules/.pnpm/mongodb-memory-server@9.2.0/node_modules/mongodb-memory-server: Running postinstall script...
node_modules/.pnpm/isolated-vm@4.7.2/node_modules/isolated-vm: Running install script, failed in 21.9s
.../node_modules/isolated-vm install$ prebuild-install || (node-gyp rebuild --release -j max && node-gyp clean)
│ prebuild-install warn install connect ETIMEDOUT 20.205.243.166:443
│ D:\proj\python\FastGPT\node_modules\.pnpm\isolated-vm@4.7.2\node_modules\isolated-vm>if not defined npm_config_node_gyp (node "D:\software\nvm\v18.20.4\node_modules\pnpm\dist\node-gyp-bin\\..\node_modules\node-gyp\bin\…
│ gyp info it worked if it ends with ok
│ gyp info using node-gyp@10.2.0
│ gyp info using node@18.20.4 | win32 | x64
│ gyp info find Python using Python version 3.11.7 found at "D:\env\anaconda3\python.exe"
│ gyp http GET https://npm.taobao.org/dist/v18.20.4/node-v18.20.4-headers.tar.gz
│ gyp http fetch GET https://npm.taobao.org/dist/v18.20.4/node-v18.20.4-headers.tar.gz attempt 1 failed with ERR_TLS_CERT_ALTNAME_INVALID
│ gyp WARN install got an error, rolling back install
│ gyp ERR! configure error
│ gyp ERR! stack FetchError: request to https://npm.taobao.org/dist/v18.20.4/node-v18.20.4-headers.tar.gz failed, reason: Hostname/IP does not match certificate's altnames: Host: npm.taobao.org. is not in the cert's altn…
│ gyp ERR! stack at ClientRequest.<anonymous> (D:\software\nvm\v18.20.4\node_modules\pnpm\dist\node_modules\minipass-fetch\lib\index.js:130:14)
│ gyp ERR! stack at ClientRequest.emit (node:events:517:28)
│ gyp ERR! stack at _destroy (node:_http_client:882:13)
│ gyp ERR! stack at onSocketNT (node:_http_client:902:5)
│ gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:83:21)
│ gyp ERR! System Windows_NT 10.0.19045
│ gyp ERR! command "D:\\env\\nodejs\\node.exe" "D:\\software\\nvm\\v18.20.4\\node_modules\\pnpm\\dist\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" "--release" "-j" "max"
│ gyp ERR! cwd D:\proj\python\FastGPT\node_modules\.pnpm\isolated-vm@4.7.2\node_modules\isolated-vm
│ gyp ERR! node -v v18.20.4
│ gyp ERR! node-gyp -v v10.2.0
│ gyp ERR! not ok
└─ Failed in 21.9s at D:\proj\python\FastGPT\node_modules\.pnpm\isolated-vm@4.7.2\node_modules\isolated-vm
node_modules/.pnpm/canvas@2.11.2_encoding@0.1.13/node_modules/canvas: Running install script, failed in 22s (skipped as optional)
ELIFECYCLE Command failed with exit code 1.