在Netlify上进行Gatsby部署失败,错误代码为127

时间:2020-03-24 04:20:30

标签: javascript gatsby netlify contentful-api

我正在尝试使用github在netlify上部署一个gatsby项目。一切正常,但最后我面临这些问题。

9:32:45 AM: node: symbol lookup error: /opt/build/repo/node_modules/gatsby-source-contentful/node_modules/sharp/build/Release/sharp.node: undefined symbol: vips_foreign_heif_compression_get_type 9:32:45 AM: Skipping functions preparation step: no functions directory set 9:32:45 AM: Caching artifacts 9:32:45 AM: Started saving node modules 9:32:45 AM: Finished saving node modules 9:32:45 AM: Started saving pip cache 9:32:45 AM: Finished saving pip cache 9:32:45 AM: Started saving emacs cask dependencies 9:32:45 AM: Finished saving emacs cask dependencies 9:32:45 AM: Started saving maven dependencies 9:32:45 AM: Finished saving maven dependencies 9:32:45 AM: Started saving boot dependencies 9:32:45 AM: Finished saving boot dependencies 9:32:45 AM: Started saving go dependencies 9:32:45 AM: Finished saving go dependencies 9:32:48 AM: Error running command: Build script returned non-zero exit code: 127 9:32:48 AM: Failing build: Failed to build site 9:32:49 AM: failed during stage 'building site': Build script returned non-zero exit code: 127 9:32:49 AM: Finished processing build request in 1m36.385195021s

如何解决符号查找错误:/opt/build/repo/node_modules/gatsby-source-contentful/node_modules/sharp/build/Release/sharp.node:未定义符号:vips_foreign_heif_compression_get_type

1 个答案:

答案 0 :(得分:2)

这只是软件包版本中的冲突,似乎存在版本不匹配的情况。通过更新所有软件包解决了该问题

_createLink