Closed bilisheep closed 4 months ago
在前端部署时,使用yarn install 与 npm install均报错
error /Users/bilisheep/Program/Source/eladmin-mp/eladmin-web/node_modules/deasync: Command failed. Exit code: 1 Command: node ./build.js Arguments: Directory: /Users/bilisheep/Program/Source/eladmin-mp/eladmin-web/node_modules/deasync Output: gyp info it worked if it ends with ok gyp info using node-gyp@9.1.0 gyp info using node@16.20.2 | darwin | arm64 gyp info find Python using Python version 3.11.7 found at "/opt/anaconda3/bin/python3" gyp http GET https://npm.taobao.org/dist/v16.20.2/node-v16.20.2-headers.tar.gz gyp WARN install got an error, rolling back install gyp ERR! configure error gyp ERR! stack FetchError: request to https://npm.taobao.org/dist/v16.20.2/node-v16.20.2-headers.tar.gz failed, reason: Hostname/IP does not match certificate's altnames: Host: npm.taobao.org. is not in the cert's altnames: DNS:*.tbcdn.cn, DNS:*.taobao.com, DNS:*.alicdn.com, DNS:*.cmos.greencompute.org, DNS:cmos.greencompute.org, DNS:m.intl.taobao.com, DNS:*.mobgslb.tbcache.com, DNS:*.alikunlun.com, DNS:alikunlun.com, DNS:*.django.t.taobao.com, DNS:alicdn.com, DNS:*.tbcache.com, DNS:*.tmall.com, DNS:*.1688.com, DNS:*.3c.tmall.com, DNS:*.alibaba.com, DNS:*.aliexpress.com, DNS:*.aliqin.tmall.com, DNS:*.alitrip.com, DNS:*.aliyun.com, DNS:*.cainiao.com, DNS:*.cainiao.com.cn, DNS:*.chi.taobao.com, DNS:*.chi.tmall.com, DNS:*.china.taobao.com, DNS:*.dingtalk.com, DNS:*.etao.com, DNS:*.feizhu.cn, DNS:*.feizhu.com, DNS:*.fliggy.com, DNS:*.fliggy.hk, DNS:*.food.tmall.com, DNS:*.jia.taobao.com, DNS:*.jia.tmall.com, DNS:*.ju.taobao.com, DNS:*.juhuasuan.com, DNS:*.lw.aliimg.com, DNS:*.m.1688.com, DNS:*.m.alibaba.com, DNS:*.m.alitrip.com, DNS:*.m.cainiao.com, DNS:*.m.etao.com, DNS:*.m.taobao.com, DNS:*.m.taopiaopiao.com, DNS:*.m.tmall.com, DNS:*.m.tmall.hk, DNS:*.mei.com, DNS:*.taopiaopiao.com, DNS:*.tmall.hk, DNS:*.trip.taobao.com, DNS:*.xiami.com, DNS:1688.com, DNS:alibaba.com, DNS:aliexpress.com, DNS:alitrip.com, DNS:aliyun.com, DNS:cainiao.com, DNS:cainiao.com.cn, DNS:dingtalk.com, DNS:etao.com, DNS:feizhu.cn, DNS:feizhu.com, DNS:fliggy.com, DNS:fliggy.hk, DNS:juhuasuan.com, DNS:mei.com, DNS:taobao.com, DNS:taopiaopiao.com, DNS:tmall.hk, DNS:xiami.com, DNS:tmall.com, DNS:*.cloudvideocdn.taobao.com, DNS:cloudvideocdn.taobao.com, DNS:tbcdn.cn gyp ERR! stack at ClientRequest.<anonymous> (/opt/homebrew/Cellar/node@16/16.20.2_1/lib/node_modules/npm/node_modules/minipass-fetch/lib/index.js:130:14) gyp ERR! stack at ClientRequest.emit (node:events:513:28) gyp ERR! stack at TLSSocket.socketErrorListener (node:_http_client:494:9) gyp ERR! stack at TLSSocket.emit (node:events:525:35) gyp ERR! stack at emitErrorNT (node:internal/streams/destroy:157:8) gyp ERR! stack at emitErrorCloseNT (node:internal/streams/destroy:122:3) gyp ERR! stack at processTicksAndRejections (node:internal/process/task_queues:83:21) gyp ERR! System Darwin 23.5.0 gyp ERR! command "/opt/homebrew/Cellar/node@16/16.20.2_1/bin/node" "/opt/homebrew/Cellar/node@16/16.20.2_1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /Users/bilisheep/Program/Source/eladmin-mp/eladmin-web/node_modules/deasync gyp ERR! node -v v16.20.2
访问https://npm.taobao.org/dist/v16.20.2/node-v16.20.2-headers.tar.gz结果为404
修改 npm 源 npm config set registry https://registry.npmmirror.com
在前端部署时,使用yarn install 与 npm install均报错
访问https://npm.taobao.org/dist/v16.20.2/node-v16.20.2-headers.tar.gz结果为404