gpt4 book ai didi

node.js - jhipster/spring boot - 尝试代理请求时发生错误

转载 作者:太空宇宙 更新时间:2023-11-03 22:45:19 24 4
gpt4 key购买 nike

当我尝试运行 jhipster 生成的 React Web 应用程序时,出现了一堆 NodeJS 错误。我正在使用 node 10.4.1yarn 1.7.0macos 上运行此项目。这是确切的错误:

[HPM] Error occurred while trying to proxy request /api/account from localhost:9060 to http://127.0.0.1:8080 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /management/info from localhost:9060 to http://127.0.0.1:8080 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /api/account from localhost:9060 to http://127.0.0.1:8080 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /api/account from localhost:9060 to http://127.0.0.1:8080 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /management/info from localhost:9060 to http://127.0.0.1:8080 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /api/account from localhost:9060 to http://127.0.0.1:8080 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)

我的计算机可能发生了一些问题...有什么想法吗?

最佳答案

此错误意味着 browsersync/webpack 无法连接到端口 8080 上的后端 java 用于代理 API 调用:Spring Boot 应用程序必须在执行“yarn start”之前运行。您必须同时运行“./mvnw”和“yarn start”。请参阅documentation和 webpack/webpack.dev.js 文件

关于node.js - jhipster/spring boot - 尝试代理请求时发生错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50952474/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com