【发布时间】:2019-01-03 00:37:28
【问题描述】:
简而言之,我无法在我的开发计算机上安装@pact-foundation/pact-node,据我所知,它似乎与在 macOS 10.14 上的关系松散。当我松散地说时,这不会影响我运行相同堆栈的其他非开发计算机。
在 nvm 中,我尝试使用 Node 8.14.0、8.15.0、9.4.0、10.14.2、10.15.0 和 11.6.0,以及系统 Node,它也是 11.6.0。无论我是在团队的项目目录中还是在其他空的沙盒目录中,每个版本都会产生相同的错误消息。
直到几分钟前,我还在运行 macOS 10.14.1 并且在 10.14.2 上看到了同样的问题。没有尚未安装的更新。
包安装输出如下。
$ npm install @pact-foundation/pact-node
> dtrace-provider@0.8.7 install /Users/andrewgould/www/sandbox/node_modules/dtrace-provider
> node-gyp rebuild || node suppress-error.js
ACTION binding_gyp_ndtp_target_build_ndtp .
TOUCH Release/obj.target/ndtp.stamp
> spawn-sync@1.0.15 postinstall /Users/andrewgould/www/sandbox/node_modules/spawn-sync
> node postinstall
> caporal@0.10.0 postinstall /Users/andrewgould/www/sandbox/node_modules/caporal
> (test -f ./node_modules/husky/bin/install.js && node ./node_modules/husky/bin/install.js) || exit 0
> @pact-foundation/pact-node@6.20.0 postinstall /Users/andrewgould/www/sandbox/node_modules/@pact-foundation/pact-node
> node postinstall.js
dyld: lazy symbol binding failed: Symbol not found: _usdt_create_provider
Referenced from: /Users/andrewgould/www/sandbox/node_modules/dtrace-provider/src/build/Release/DTraceProviderBindings.node
Expected in: flat namespace
dyld: Symbol not found: _usdt_create_provider
Referenced from: /Users/andrewgould/www/sandbox/node_modules/dtrace-provider/src/build/Release/DTraceProviderBindings.node
Expected in: flat namespace
Abort trap: 6
以前有人见过这样的错误吗?有没有已知的解决方案?
【问题讨论】:
标签: node.js macos macos-mojave dtrace