【问题标题】:Forge configurator inventor sample - run locallyForge 配置器发明者示例 - 在本地运行
【发布时间】:2021-04-23 15:22:33
【问题描述】:

我正在尝试在本地运行示例应用程序 (https://github.com/Autodesk-Forge/forge-configurator-inventor),但在启动后立即出现很多错误。在构建过程中我没有收到任何错误。

非常感谢任何输入 - 谢谢

[11:04:15 INF] In Development environment
[11:04:16 INF] Now listening on: https://localhost:5001
[11:04:16 INF] Application started. Press Ctrl+C to shut down.
[11:04:16 INF] Hosting environment: Development
[11:04:16 INF] Content root path: D:\!projects\2020_10_forgeConfiguratorInventorSample\8\forge-configurator-inventor-master\WebApplication
npm[11:04:21 ERR] npm ERR! code ELIFECYCLE

npm[11:04:21 ERR] npm ERR! errno 1
npm ERR! forge-configurator-inventor@0.1.1 start: `rimraf ./build && react-scripts start`

[11:04:21 ERR] npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the forge-configurator-inventor@0.1.1 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


[11:04:21 ERR] npm ERR! A complete log of this run can be found in:

[11:04:21 ERR] HTTP GET / responded 500 in 2830.2599 ms
System.AggregateException: One or more errors occurred. (One or more errors occurred. (The NPM script 'start' exited without indicating that the create-react-app server was listening for requests. The error output was: npm ERR! code ELIFECYCLE

【问题讨论】:

    标签: autodesk-forge


    【解决方案1】:

    我从未见过这个问题,所以我只是在这里猜测。你能尝试使用最新的稳定版本的nodejs吗? 此外,如果有的话,应该可以从 VisualStudio 构建和运行。

    【讨论】:

      【解决方案2】:

      我建议去 WebApplication/ClientApp 并删除 node_modules 文件夹。 然后再试一次dotnet run

      【讨论】:

      • 感谢您的建议,米哈尔。我尝试删除 WebApplication/ClientApp 下的 node_modules 文件夹,然后在管理员模式下从 powershell 运行“dotnet run” - 不幸的是我得到了完全相同的消息。我一定是错过了什么。
      猜你喜欢
      • 2021-04-11
      • 2021-06-07
      • 2021-06-10
      • 1970-01-01
      • 1970-01-01
      • 2021-08-01
      • 2021-06-22
      • 1970-01-01
      • 2021-02-09
      相关资源
      最近更新 更多