Gatsby “..\node\u modules\pngquant bin\vendor\pngquant.exe”丢失

Gatsby “..\node\u modules\pngquant bin\vendor\pngquant.exe”丢失,gatsby,gatsby-image,gatsby-plugin-feed,Gatsby,Gatsby Image,Gatsby Plugin Feed,E:\Gatsby\ecom Gatsby>Gatsby开发 成功打开并验证盖茨比配置-0.349s 成功加载插件-19.895s 在PreInit上成功-0.036s 成功初始化缓存-0.454s ⠋ 复制盖茨比文件 错误 未经处理的拒绝处理E:/Gatsby/ecom Gatsby/src/images/Gatsby-automotor.png失败 原始错误: “E:\Gatsby\ecom Gatsby\node\u modules\pngquant bin\vendor\pngquant

E:\Gatsby\ecom Gatsby>Gatsby开发 成功打开并验证盖茨比配置-0.349s 成功加载插件-19.895s 在PreInit上成功-0.036s 成功初始化缓存-0.454s ⠋ 复制盖茨比文件

错误

未经处理的拒绝处理E:/Gatsby/ecom Gatsby/src/images/Gatsby-automotor.png失败

原始错误: “E:\Gatsby\ecom Gatsby\node\u modules\pngquant bin\vendor\pngquant.exe”未被识别为内部或外部命令, 可操作的程序或批处理文件

工作错误:处理E:/Gatsby/ecom Gatsby/src/images/Gatsby-audion.png失败 原始错误: “E:\Gatsby\ecom Gatsby\node\u modules\pngquant bin\vendor\pngquant.exe”未被识别为内部或外部命令, 可操作的程序或批处理文件

jobs manager.js:314 exports.enqueueJob [ecom gatsby]/[gatsby]/dist/utils/jobs manager.js:314:23

task_queues.js:94处理和拒绝 内部/流程/任务队列。js:94:5


未完成盖茨比文件的复制-0.157s

通过安装两个npm包解决此问题

通过使用旧的imagemin pngquan和pngquant bin库版本进行修复

npm安装imagemin-pngquant@5.0.1-保存 npm安装pngquant-bin@3.1.1-保存```


确保使用root/Administrator权限运行命令。

ok,您已经向我们发送了控制台输出。你到底有什么问题?