2016-04-04 15 views
0

Yeni gelen postacı koleksiyonunu çalıştırmaya çalışırken hataya düşmek. Düğüm Sürümü - NPM versiyonu v4.4.2 - 2.15.0 Newman versiyonu - 2.0.5Newman'da postacı koleksiyonu çalıştırırken modül uyuşmazlığı hatası alma

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) 

cevap

0

Bu Düğüm sürümü güncellendi var demektir, size node_modules yeniden inşa etmek ya gerekir böylece veya Newman'ı yeniden yükleyin.

Yeniden:

npm rebuild Newman 

yeniden yükle:

npm uninstall -g newman 
npm install -g newman 
İlgili konular