首页 > 解决方案 > 按照 IHP 指南看到:Web/Controller: getDirectoryContents:openDirStream: 不存在

问题描述

这就是我在 localhost:8001 加载页面上看到的所有内容,在遵循https://ihp.digitallyducing.com/Guide/installation.html上的 Hello World 说明后运行 ./start :

Web/Controller: getDirectoryContents:openDirStream: does not exist (No such file or directory)
An exception was raised while running the action TablesAction

有没有人遇到过这个错误?我认为这是安装过程中的错误,而不是项目中的错误。

如果它有助于诊断,则安装需要很长时间。警告它最多需要 30 秒的部分花了大约 10 分钟。这似乎很不寻常。

操作系统是 Mac OS High Sierra。

标签: ihp

解决方案


长构建时间问题有时与不使用 IHP cachix 存储库有关:

cachix use digitallyinduced

对于例外。你有安装其他系统版本的haskell吗?IHP 文档的故障排除页面可能有用。您可以尝试确保您的系统正确加载 .envrc 文件。如果您输入:

nix-shell --run 'make build/ihp-lib'

这可能会提供更多信息。


推荐阅读