【问题标题】:yarn start-https failed with error Command failed with exit code 1yarn start-https 失败并出现错误命令失败,退出代码为 1
【发布时间】:2022-01-11 08:51:05
【问题描述】:

我正在处理我下载的项目,但在设置和启动环境时遇到了问题。 在 yarn install、yarn build 和 yarn start-https 之后,我收到以下错误消息:

Error: error:0909006C:PEM routines:get_name:no start line
    at node:internal/tls/secure-context:65:13
    at Array.forEach (<anonymous>)
    at setCerts (node:internal/tls/secure-context:63:3)
    at configSecureContext (node:internal/tls/secure-context:152:5)
    at Object.createSecureContext (node:_tls_common:116:3)
    at Server.setSecureContext (node:_tls_wrap:1344:27)
    at Server (node:_tls_wrap:1203:8)
    at new Server (node:https:69:3)
    at Object.createServer (node:https:105:10)
    at Server.createServer (.../node_modules/webpack-dev-server/lib/Server.js:677:35)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

我已按照自述文件的设置...我尝试在谷歌上搜索每一行错误消息,但没有任何帮助解决退出的问题。

我觉得,我一定遗漏了一些东西......自述文件中没有记录的东西......

任何帮助将不胜感激。

【问题讨论】:

    标签: javascript node.js reactjs npm https


    【解决方案1】:

    我认为你需要检查你的 package.json 文件,尤其是脚本文件

    如果您分享更多关于您的起始文件的参考资料,您会很高兴了解更多

    很高兴为您提供帮助

    【讨论】:

    • 你的权利!我通过查看 json 文件修复了它!谢谢
    猜你喜欢
    • 2012-01-22
    • 1970-01-01
    • 2018-07-12
    • 2015-10-12
    • 2020-10-25
    • 2018-10-15
    • 1970-01-01
    • 1970-01-01
    • 2019-12-04
    相关资源
    最近更新 更多