Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行gatsby build报错 #3

Closed
hungryfoolou opened this issue May 2, 2019 · 1 comment
Closed

执行gatsby build报错 #3

hungryfoolou opened this issue May 2, 2019 · 1 comment

Comments

@hungryfoolou
Copy link

我在执行gatsby build报错了,在网上也没有查到解决办法,想咨询下各位如何解决这个问题。
错误如下:
`[root@VM_0_15_centos Meme-generator]# gatsby build
success open and validate gatsby-configs — 0.006 s
success load plugins — 0.221 s
error Plugin gatsby-transformer-sharp returned an error

Error: Could not locate the bindings file. Tried:
→ /opt/github_program/Meme-generator/node_modules/sharp/build/sharp.node
→ /opt/github_program/Meme-generator/node_modules/sharp/build/Debug/sharp.node
→ /opt/github_program/Meme-generator/node_modules/sharp/build/Release/sharp.node
→ /opt/github_program/Meme-generator/node_modules/sharp/out/Debug/sharp.node
→ /opt/github_program/Meme-generator/node_modules/sharp/Debug/sharp.node
→ /opt/github_program/Meme-generator/node_modules/sharp/out/Release/sharp.node
→ /opt/github_program/Meme-generator/node_modules/sharp/Release/sharp.node
→ /opt/github_program/Meme-generator/node_modules/sharp/build/default/sharp.node
→ /opt/github_program/Meme-generator/node_modules/sharp/compiled/8.9.0/linux/ia32/sharp.node
`

@WincerChan
Copy link
Owner

  1. 你电脑依赖管理是 Yarn 还是 NPM
  2. Node 版本是多少

参考:
gatsbyjs/gatsby#9511
gatsbyjs/gatsby#8488
nodejs/node-gyp#1511

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants