依赖“sharp”似乎没有正确构建或安装 - gatsby - gitlab页面

问题描述 投票:0回答:1

我在本地运行gatsby并尝试部署到gitlab页面。我得到的错误就像

错误依赖“sharp”似乎没有正确构建或安装。

错误错误:模块版本不匹配。预期48,在Try.oduleLoad(module.js:446)的Module.load(module.js:487:32)的Object.Module._extensions..node(module.js:597:18)的Error(native)处获得64。 :12)在Module.require(module.js:497:17)的Function.Module._load(module.js:438:3)at require(/ builds / user / gatsby / node_modules / v8-compile-cache / v8) -compile-cache.js:159:20)在Object处绑定(/builds/user/gatsby/node_modules/bindings/bindings.js:112:48)。 (/builds/user/gatsby/node_modules/sharp/lib/constructor.js:10:34)在Module._compile上(/builds/user/gatsby/node_modules/v8-compile-cache/v8-compile-cache.js: 178:30)在Function.Module的tryModuleLoad(module.js:446:12)的Module.load(module.js:487:32)的Object.Module._extensions..js(module.js:579:10)位于Module.require(module.js:497:17)的._load(module.js:438:3)at require(/builds/user/gatsby/node_modules/v8-compile-cache/v8-compile-cache.js: 159:20)

gatsby
1个回答
0
投票

当我尝试推送到Netlify时,这种情况发生在我身上,如果我找到解决方案,我会回复。

© www.soinside.com 2019 - 2024. All rights reserved.