putyy / res-downloader

支持视频号、小程序、抖音、快手、小红书、直播流、酷狗、QQ音乐等常见网络资源!
https://github.com/putyy/res-downloader
MIT License
3.7k stars 529 forks source link

intel mac yarn install报错 #34

Closed crithes closed 6 months ago

crithes commented 7 months ago

你好,我yarn install报错:error /Users/gaojie/Desktop/flutter/oldapp/fluttercrm/res-downloader/node_modules/electron: Command failed. Exit code: 1 Command: node install.js 我的nodejs版本是Node.js v18.0.0

kinglee9527 commented 7 months ago

error /Users/kinglee/Documents/funspace/res-downloader/node_modules/electron: Command failed. Exit code: 1 Command: node install.js Arguments: Directory: /Users/kinglee/Documents/funspace/res-downloader/node_modules/electron Output: RequestError: 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 at ClientRequest. (/Users/kinglee/Documents/funspace/res-downloader/node_modules/got/dist/source/core/index.js:970:111) at Object.onceWrapper (node:events:627:26) at ClientRequest.emit (node:events:524:35) at origin.emit (/Users/kinglee/Documents/funspace/res-downloader/node_modules/@szmarczak/http-timer/dist/source/index.js:43:20) at TLSSocket.socketErrorListener (node:_http_client:496:9) at TLSSocket.emit (node:events:512:28) at emitErrorNT (node:internal/streams/destroy:151:8) at emitErrorCloseNT (node:internal/streams/destroy:116:3) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) at new NodeError (node:internal/errors:399:5) at Object.checkServerIdentity (node:tls:337:12) at TLSSocket.onConnectSecure (node:_tls_wrap:1550:27)

我也有同样的问题

kinglee9527 commented 7 months ago

error /Users/kinglee/Documents/funspace/res-downloader/node_modules/electron: Command failed. Exit code: 1 Command: node install.js Arguments: Directory: /Users/kinglee/Documents/funspace/res-downloader/nodemodules/electron Output: RequestError: 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 at ClientRequest. (/Users/kinglee/Documents/funspace/res-downloader/node_modules/got/dist/source/core/index.js:970:111) at Object.onceWrapper (node:events:627:26) at ClientRequest.emit (node:events:524:35) at origin.emit (/Users/kinglee/Documents/funspace/res-downloader/node_modules/@szmarczak/http-timer/dist/source/index.js:43:20) at TLSSocket.socketErrorListener (node:_http_client:496:9) at TLSSocket.emit (node:events:512:28) at emitErrorNT (node:internal/streams/destroy:151:8) at emitErrorCloseNT (node:internal/streams/destroy:116:3) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) at new NodeError (node:internal/errors:399:5) at Object.checkServerIdentity (node:tls:337:12) at TLSSocket.onConnectSecure (node:_tls_wrap:1550:27)

我也有同样的问题

mac电脑 Sonoma 14.1 node版本 v19.6.0

kinglee9527 commented 7 months ago

cnpm install 安装成功了

putyy commented 7 months ago

安装不了的情况 一般情况都跟跟网络有关 设置好命令行代理 用特殊网络进行安装 同楼上 cnpm 也行