我有一个gatsby react项目,我一直在将包添加到默认模板中。但这些包中有一个或多个似乎与gatsby不兼容。我删除了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 install而不会出现错误。有没有人有在gatsby项目中构建pngquant错误的经验?
发布于 2020-07-13 15:58:53
Github停机似乎是个问题。错误是500,和你访问Github时得到的完全一样。
请参阅:https://www.githubstatus.com/
调查-我们正在调查性能下降和错误率增加的报告。“
Jul 07- 13 04:06 UTC
https://stackoverflow.com/questions/62870406
复制相似问题