0

尝试从 newman 运行邮递员集合时出现以下错误。Node版本是-v4.4.2 NPM版本是-2.15.0 Newman版本是-2.0.5

newman -c TPO_Regression.json
    /usr/local/lib/node_modules/newman/node_modules/jsdom/node_modules/contextify/node_modules/bindings/bindings.js:83
            throw e
            ^

    Error: Module version mismatch. Expected 46, got 14.
        at Error (native)
        at Object.Module._extensions..node (module.js:434:18)
        at Module.load (module.js:343:32)
        at Function.Module._load (module.js:300:12)
        at Module.require (module.js:353:17)
        at require (internal/module.js:12:17)
        at bindings (/usr/local/lib/node_modules/newman/node_modules/jsdom/node_modules/contextify/node_modules/bindings/bindings.js:76:44)
        at Object.<anonymous> (/usr/local/lib/node_modules/newman/node_modules/jsdom/node_modules/contextify/lib/contextify.js:1:96)
        at Module._compile (module.js:409:26)
        at Object.Module._extensions..js (module.js:416:10)
4

1 回答 1

0

这意味着您的 Node 版本已更新,因此您需要重新构建您的node_modules. 或重新安装 Newman。

重建:

npm rebuild Newman

重新安装:

npm uninstall -g newman
npm install -g newman
于 2016-04-18T05:13:11.790 回答