-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Build failed 构建失败 #1209
Comments
Same problem, but there is no error with yarn or npm |
我使用 npm 、yarn、pnpm 都会这样 |
切换为 yarn/npm 之前,node_modules 和 lock 文件删了吗?然后重新 install。 |
全面都删除了,重新安装的 |
Which operating systems are you guys using? |
windows 11 |
Ah, on Windows you need to enable dev mode to create symlinks without root access. |
那为什么在 |
My yarn and npm is on the WSL, there is no error with them. But my pnpm is on Windows, so it caused errors. Maybe this is a new bug in this version. |
It was added here 3b2d90a. For now you can consider enabling dev mode. We are looking for a way to fix this.
Yeah there won't be any issues inside WSL as it's basically a Linux layer. On macOS and other *nix, this shouldn't cause any issue as well. |
临时解决方案:以管理员权限运行 cmd,但是 build 之后,会在docs文件夹下面生成 node_modules 文件夹,下次再 build 的时候,需要先删除 docs文件夹下面的 node_modules 文件夹 |
哦哦,我尝试使用管理员身份运行 cmd 打包成功了,是预期的结果。 但是我认为这仍然是个问题 |
macOS Monterey 12.5.1 也这样的,npm、yarn都不行 |
mac 下使用 sudo 操作也不行哦 |
Describe the bug
在使用
vitepress v1.0.0-alpha.8
版本在构建项目之后打包会抛出异常错误信息,导致打包失败:经过测试,在
vitepress v1.0.0-alpha.5
以后的版本中都存在这个问题Reproduction
初始化项目
向package.json添加一些脚本
Expected behavior
构建成功
System Info
Additional context
Validations
The text was updated successfully, but these errors were encountered: