NodeJS 命令行工具,它总是崩溃“dyld:延迟符号绑定失败:找不到符号:____检查标准_达尔文”

nr9pn0ug  于 2022-12-12  发布在  Node.js
关注(0)|答案(2)|浏览(460)

我构建任何命令行工具都会发生这种情况安装节点最新版本后

dyld: lazy symbol binding failed: Symbol not found: ____chkstk_darwin
  Referenced from: /usr/local/bin/node (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libSystem.B.dylib

dyld: Symbol not found: ____chkstk_darwin
  Referenced from: /usr/local/bin/node (which was built for Mac OS X 10.15)
  Expected in: /usr/lib/libSystem.B.dylib

Abort trap: 6

你有推荐的吗?我真的不知道这里发生了什么事

c9qzyr3d

c9qzyr3d1#

问题出在节点版本上,它不适合我的Mac版本,我的版本是macOS 10.13,我删除了节点18,安装了节点16,之后它工作了

628mspwn

628mspwn2#

在运行以下代码时,我遇到了类似的问题:

npm run dev

出现以下错误:

> @onwidget/astrowind@0.8.4 dev
> astro dev

dyld: lazy symbol binding failed: Symbol not found: _pthread_jit_write_protect_supported_np
  Referenced from: /Volumes/DATA/Astro/astrowind-latest/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: /Volumes/DATA/Astro/astrowind-latest/node_modules/sharp/build/Release/../.././vendor/8.13.3/darwin-x64/lib/libvips-cpp.42.dylib
  Expected in: /usr/lib/libSystem.B.dylib

/var/folders/p1/k78b7zpd401fqcvhv6jx8w2r0000gn/T/dev-ef801fa5.sh: line 1:  6674 Abort trap: 6           astro dev

但当我试图检查节点版本时,

node --version

我的版本仍然是v16.17.1
有什么线索吗?

相关问题