首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Windows pngquant无法在gatsby项目中生成

Windows pngquant无法在gatsby项目中生成
EN

Stack Overflow用户
提问于 2020-07-13 14:34:35
回答 1查看 343关注 0票数 2

我有一个gatsby react项目,我一直在将包添加到默认模板中。但这些包中有一个或多个似乎与gatsby不兼容。我删除了node_modules和yarn.lock文件,并调用了yarn install命令

代码语言:javascript
复制
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错误的经验?

EN

回答 1

Stack Overflow用户

发布于 2020-07-13 15:58:53

Github停机似乎是个问题。错误是500,和你访问Github时得到的完全一样。

请参阅:https://www.githubstatus.com/

调查-我们正在调查性能下降和错误率增加的报告。“

Jul 07- 13 04:06 UTC

票数 -1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/62870406

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档