Closed Tyh2001 closed 1 year ago
Same problem, but there is no error with yarn or npm
Same problem, but there is no error with yarn or npm
我使用 npm 、yarn、pnpm 都会这样
Same problem, but there is no error with yarn or npm
我使用 npm 、yarn、pnpm 都会这样
切换为 yarn/npm 之前,node_modules 和 lock 文件删了吗?然后重新 install。
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?
Which operating systems are you guys using?
windows 11
Ah, on Windows you need to enable dev mode to create symlinks without root access.
Ah, on Windows you need to enable dev mode to create symlinks without root access.
那为什么在 vitepress v1.0.0-alpha.5
版本之前都是可以正常使用的,但是在后续的新版本中都相同问题
Which operating systems are you guys using?
windows 11
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.
那为什么在 vitepress v1.0.0-alpha.5 版本之前都是可以正常使用的,但是在后续的新版本中都相同问题
It was added here https://github.com/vuejs/vitepress/pull/856/commits/3b2d90acf4d3091a784cb7600017c41a3ed3b65e. For now you can consider enabling dev mode. We are looking for a way to fix this.
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.
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,但是 build 之后,会在docs文件夹下面生成 node_modules 文件夹,下次再 build 的时候,需要先删除 docs文件夹下面的 node_modules 文件夹
哦哦,我尝试使用管理员身份运行 cmd 打包成功了,是预期的结果。
但是我认为这仍然是个问题
Which operating systems are you guys using?
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