V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
xanta
V2EX  ›  Electron

Lossless-Cut 这个 repo 谁能帮我看看

  •  
  •   xanta · 2023-11-03 20:09:58 +08:00 · 811 次点击
    这是一个创建于 420 天前的主题,其中的信息可能已经有所发展或是发生改变。

    https://github.com/mifi/lossless-cut/blob/master/developer-notes.md

    被 yarn 搞糊涂了,安装就报错

    ➤ YN0002: │ lossless-cut@workspace:. doesn't provide react-is (p8fea6), requested by evergreen-ui
    ➤ YN0000: │ Some peer dependencies are incorrectly met; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code
    

    然后

    ➤ YN0000: lossless-cut@workspace:. doesn't provide react-is, breaking the following requirements:
    
    ➤ YN0000: evergreen-ui@npm:6.13.1 [3c853] → ^16.8.0 || ^17.0.0 || ^18.0.0 ✘
    

    yarn add 也不好使

    electron 的 build 也会报错,build log:

    # This file contains the result of Yarn building a package (electron@npm:27.0.0)
    # Script name: postinstall
    
    RequestError: unable to verify the first certificate
        at ClientRequest.<anonymous> (H:\Work\Personal\Electron\lossless-cut\node_modules\got\dist\source\core\index.js:970:111)
        at Object.onceWrapper (node:events:629:26)
        at ClientRequest.emit (node:events:526:35)
        at origin.emit (H:\Work\Personal\Electron\lossless-cut\node_modules\@szmarczak\http-timer\dist\source\index.js:43:20)
        at TLSSocket.socketErrorListener (node:_http_client:501:9)
        at TLSSocket.emit (node:events:514: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 TLSSocket.onConnectSecure (node:_tls_wrap:1550:34)
        at TLSSocket.emit (node:events:514:28)
        at TLSSocket._finishInit (node:_tls_wrap:967:8)
        at ssl.onhandshakedone (node:_tls_wrap:743:12)
    

    然后查了可能是 SSL 问题嘛,yarn config set strict-ssl false 啥的

    Usage Error: Couldn't find a configuration settings named "strict-ssl"
    

    看了下 yarn 版本,项目用的是 3.6.4

    我已经糊涂了 99 孩子

    xanta
        1
    xanta  
    OP
       232 天前
    忘了回来补充,用 webstorm 直接自动配好了,不理解
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2796 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 46ms · UTC 02:50 · PVG 10:50 · LAX 18:50 · JFK 21:50
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.