Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
解决克隆项目后无法成功安装依赖的问题:
Steps to reproduce(问题复现步骤)
克隆项目到本地电脑
yarn
有网络超时的报错出现
fatal: unable to access 'https://github.com/nhn/raphael.git/': LibreSSL SSL_read: error:02FFF03C:system library:func(4095):Operation timed out, errno 60 at ProcessTermError.ExtendableBuiltin (/usr/local/lib/node_modules/yarn/lib/cli.js:721:66) at ProcessTermError.MessageError (/usr/local/lib/node_modules/yarn/lib/cli.js:750:123) at new ProcessTermError (/usr/local/lib/node_modules/yarn/lib/cli.js:790:113) at ChildProcess. (/usr/local/lib/node_modules/yarn/lib/cli.js:25787:17) at ChildProcess.emit (node:events:513:28) at maybeClose (node:internal/child_process:1093:16) at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
Screenshot or Gif(截图或动态图)
解决办法:
项目依赖的 tui-editor 插件包更换了包名,导致无法正常安装成功,一直卡在这里,因此解决办法很简单,更换项目package.json里面 tui-editor 为@toast-ui/editor 即可,我提交的代码中对错误进行了修改