我有一个gatsby react项目,我已经将软件包添加到默认模板中。但是其中一个或多个包裹似乎与盖茨比不兼容。我删除了node_modules和yarn.lock文件并调用yarn install
产生了
error C:\Users\RKevi\source\repos\gatsby-garb\node_modules\pngquant-bin: Command failed.
Exit code: 1
Command: node lib/install.js
Arguments:
Directory: C:\Users\RKevi\source\repos\gatsby-garb\node_modules\pngquant-bin
Output:
‼ Response code 500 (Internal Server Error)
‼ pngquant pre-build test failed
i compiling from source
× Error: pngquant failed to build, make sure that libpng-dev is installed
at C:\Users\RKevi\source\repos\gatsby-garb\node_modules\bin-build\node_modules\execa\index.js:231:11
我知道它与我安装的软件包有关,因为如果我用gatsby new MyNewGatsbyProject
创建一个新的gatsby项目并从失败的项目中复制package.json,则新项目也会失败而不会错误地执行yarn安装。有没有人遇到过在gatsby项目中构建pngquant时出错的经验?
答案 0 :(得分:-1)
Github崩溃似乎是一个问题。错误是500,与您访问Github时完全相同。
请参阅:https://www.githubstatus.com/
调查-我们正在调查性能下降和错误率增加的报告。”
7月13日,世界标准时间04:06