【问题标题】:Getting module mismatch error when running postman collection in newman在 newman 中运行邮递员集合时出现模块不匹配错误
【发布时间】:2016-07-24 13:37:29
【问题描述】:

尝试从 newman 运行邮递员集合时出现以下错误。 节点版本是 - v4.4.2 NPM 版本是 - 2.15.0 纽曼版本是 - 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)

【问题讨论】:

    标签: postman newman


    【解决方案1】:

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

    重建:

    npm rebuild Newman
    

    重新安装:

    npm uninstall -g newman
    npm install -g newman
    

    【讨论】:

      猜你喜欢
      • 2019-12-14
      • 2018-01-11
      • 1970-01-01
      • 2020-12-06
      • 1970-01-01
      • 2019-03-28
      • 1970-01-01
      • 1970-01-01
      • 2016-11-15
      相关资源
      最近更新 更多