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

2023-11-03 20:09:58 +08:00
 xanta

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 孩子

781 次点击
所在节点    Electron
1 条回复
xanta
196 天前
忘了回来补充,用 webstorm 直接自动配好了,不理解

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/988418

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX