typescript 盖茨比5图片

fcy6dtqo  于 2022-12-19  发布在  TypeScript
关注(0)|答案(1)|浏览(87)

我有一个Gatsby v5项目使用了typescript,它无法编译,并且仅仅使用初始的gatsby new命令就无法显示。

load plugins
dyld: lazy symbol binding failed: Symbol not found: _pthread_jit_write_protect_supported_np
  Referenced from: /Users/work/Desktop/website/project_file/node_modules/sharp/build/Release/../.././vendor/8.13.3/darwin-x64/lib/libvips-cpp.42.dylib
  Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _pthread_jit_write_protect_supported_np
  Referenced from: /Users/work/Desktop/website/project_file/node_modules/sharp/build/Release/../.././vendor/8.13.3/darwin-x64/lib/libvips-cpp.42.dylib
  Expected in: /usr/lib/libSystem.B.dylib

[1]    32594 killed     gatsby develop

如果我注解掉以下插件:

'gatsby-plugin-sharp',
'gatsby-transformer-sharp',

gatsby-config.ts中运行gatsby develop,显示基本应用程序的样板,但我在控制台中收到以下错误列表:
一个三个三个一个

hc2pp10m

hc2pp10m1#

它似乎与sharp依赖关系有关。请尝试运行:

npm install --build-from-source

相关问题