Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

打包后没有index.html页面 #4275

Open
4 tasks done
ZhouYu2156 opened this issue Oct 12, 2024 · 4 comments
Open
4 tasks done

打包后没有index.html页面 #4275

ZhouYu2156 opened this issue Oct 12, 2024 · 4 comments
Labels
need more info Further information is requested stale

Comments

@ZhouYu2156
Copy link

Describe the bug

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

Reproduction

1

Expected behavior

1

System Info

1

Additional context

1

Validations

@ZhouYu2156 ZhouYu2156 added the bug: pending triage Maybe a bug, waiting for confirmation label Oct 12, 2024
@brc-dd
Copy link
Member

brc-dd commented Oct 12, 2024

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

@brc-dd brc-dd added need more info Further information is requested and removed bug: pending triage Maybe a bug, waiting for confirmation labels Oct 12, 2024
@ZhouYu2156
Copy link
Author

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

@ZhouYu2156
Copy link
Author

打包总是提示信息如下: 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,我的所有配置都是正常的。打包过程也没报任何错误,为什么会这样呢。我现在属实无奈,好不容易花了一天时间把笔记整理好,准备打包发布了,结果打包不了,太尴尬了~我尝试很多次了,并且也无数次修改、优化配置,但是没有效果

@github-actions github-actions bot added the stale label Dec 3, 2024
@dannylin0711
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more info Further information is requested stale
Projects
None yet
Development

No branches or pull requests

3 participants