【发布时间】:2019-11-02 03:56:49
【问题描述】:
我在我的 angular 8 项目上运行它:
ole@mkt:~/test$ ngh
index.html could not be copied to 404.html. This does not look like an angular-cli project?!
(Hint: are you sure that you have setup the directory correctly?)
Diagnostic info [Error: ENOENT: no such file or directory, stat '/home/ole/test/dist/index.html'] {
errno: -2,
code: 'ENOENT',
syscall: 'stat',
path: '/home/ole/test/dist/index.html'
}
???? Successfully published via angular-cli-ghpages! Have a nice day!
ole@mkt:~/test$ ls dist/
test
我得到 index.html 无法复制,看起来这是因为 Angular 将构建文件生成到 dist/PROJECT_NAME,在这种情况下,项目名称是 test。
我看起来 ngh 希望在 dist 中找到 index.html,而不是在 dist/test 中。
关于如何解决这个问题的任何想法?
【问题讨论】:
标签: node.js angular typescript github-pages angular-cli-ghpages