我已经在CentOS 6.6机器上安装了newman(https://github.com/a85/Newman),虽然安装似乎成功,但尝试运行newman --version
会产生以下结果:
/usr/lib/node_modules/newman/node_modules/jsdom/node_modules/contextify/node_modules/bindings/bindings.js:91
throw err
^
Error: Could not locate the bindings file. Tried:
→ /usr/lib/node_modules/newman/node_modules/jsdom/node_modules/contextify/build/contextify.node
→ /usr/lib/node_modules/newman/node_modules/jsdom/node_modules/contextify/build/Debug/contextify.node
→ /usr/lib/node_modules/newman/node_modules/jsdom/node_modules/contextify/build/Release/contextify.node
→ /usr/lib/node_modules/newman/node_modules/jsdom/node_modules/contextify/out/Debug/contextify.node
→ /usr/lib/node_modules/newman/node_modules/jsdom/node_modules/contextify/Debug/contextify.node
→ /usr/lib/node_modules/newman/node_modules/jsdom/node_modules/contextify/out/Release/contextify.node
→ /usr/lib/node_modules/newman/node_modules/jsdom/node_modules/contextify/Release/contextify.node
→ /usr/lib/node_modules/newman/node_modules/jsdom/node_modules/contextify/build/default/contextify.node
→ /usr/lib/node_modules/newman/node_modules/jsdom/node_modules/contextify/compiled/0.10.33/linux/x64/contextify.node
at bindings (/usr/lib/node_modules/newman/node_modules/jsdom/node_modules/contextify/node_modules/bindings/bindings.js:88:9)
at Object.<anonymous> (/usr/lib/node_modules/newman/node_modules/jsdom/node_modules/contextify/lib/contextify.js:1:96)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at Object.<anonymous> (/usr/lib/node_modules/newman/node_modules/jsdom/lib/jsdom/browser/index.js:5:21)
at Module._compile (module.js:456:26)
我已经将此事用Google搜索过去并找到了一些声称的解决方案,但似乎没有任何效果。看起来这个问题最终是由于jsdom和它的依赖性背景。奇怪的是它无法找到的文件(contextify.node
)确实存在于它声称正在检查的路径之一。