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