Could not start 'pnpm.cmd' 报错解决

Could not start 'pnpm.cmd' 报错解决

在构建过程中出现“Could not start 'pnpm.cmd'”错误,提示系统无法找到指定文件,导致构建失败。经排查,问题根源在于系统中缺少pnpm.cmd文件。解决方法是通过cmd命令执行`where pnpm`定位pnpm的安装路径,找到对应的pnpx.cmd文件后,将其复制一份并重命名为pnpm.cmd,即可解决该问题。此操作能有效补充缺失的命令文件,使构建工具能够正常识别并启动pnpm命令。

Could not start 'pnpm.cmd'

报错信息

[ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: net.rubygrapefruit.platform.NativeException: **Could not start 'pnpm.cmd'**

[ERROR] [org.gradle.internal.buildevents.BuildExceptionReporter] Caused by: java.io.IOException: Cannot run program "pnpm.cmd" (in directory "path"): CreateProcess error=2, 系统找不到指定的文件。

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

解决方案

直接去cmd where pnpm ,找到pnpm的路径,把pnpx.cmd复制一份改名为pnpm.cmd解决。

6854f71767360.png

[开源] Tgs(电报表情包) / Lottie 格式转换工具客户端 2025-06-19
Halo 评论区表情框被遮挡 2025-06-20

评论区