vitepress icon indicating copy to clipboard operation
vitepress copied to clipboard

打包后没有index.html页面

Open ZhouYu2156 opened this issue 1 year ago • 3 comments

Describe the bug

为什么我使用了自动解析文件的方式生成导航链接和侧边栏,开发时没任何问题,最终打包却没有入口文件了。这是怎么回事?

Reproduction

1

Expected behavior

1

System Info

1

Additional context

1

Validations

ZhouYu2156 avatar Oct 12 '24 16:10 ZhouYu2156

Please share a minimal reproducible example using a git repo or https://vitepress.new

brc-dd avatar Oct 12 '24 16:10 brc-dd

现在我没有使用文件读取的方式配置自动生成路径了,但是打包时总是不能生成index.html,我按照规范创建了此文件的!现在我真的没有办法了。期待你们的回复与帮助解决此问题

ZhouYu2156 avatar Oct 13 '24 09:10 ZhouYu2156

打包总是提示信息如下: vitepress v1.4.0

✓ building client + server bundles... /d/Program Files/nodejs/npm: line 65: 977 Segmentation fault "$NODE_EXE" "$NPM_CLI_JS" "$@"

总之,每次都无法生成 index.html,我的所有配置都是正常的。打包过程也没报任何错误,为什么会这样呢。我现在属实无奈,好不容易花了一天时间把笔记整理好,准备打包发布了,结果打包不了,太尴尬了~我尝试很多次了,并且也无数次修改、优化配置,但是没有效果

ZhouYu2156 avatar Oct 14 '24 13:10 ZhouYu2156

@ZhouYu2156 Did you try this before? This is the first result after searching Google base on the npm: line 65: 977 Segmentation fault message you given.

https://stackoverflow.com/questions/41813093/npm-causes-segmentation-faults

dannylin0711 avatar Dec 20 '24 03:12 dannylin0711