Javascript 错误:在nodejs soap中找到getaddrinfo ENOTFOUND
我使用下面的代码,我得到错误Javascript 错误:在nodejs soap中找到getaddrinfo ENOTFOUND,javascript,node.js,soap,Javascript,Node.js,Soap,我使用下面的代码,我得到错误 var soap = require('soap'); var url = 'http://ws.strikeiron.com/GlobalAddressVerification5?WSDL'; soap.createClient(url, function(err, client){ console.log(err) console.log(client) }); 错误: { [Error: getaddrinfo ENOTFOUND ws.str
var soap = require('soap');
var url = 'http://ws.strikeiron.com/GlobalAddressVerification5?WSDL';
soap.createClient(url, function(err, client){
console.log(err)
console.log(client)
});
错误:
{ [Error: getaddrinfo ENOTFOUND ws.strikeiron.com]
code: 'ENOTFOUND',
errno: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'ws.strikeiron.com' }
undefined
我已设置npm代理&。npmrc具有以下条目:
proxy=http://localhost:3128/
https-proxy=http://localhost:3128/
请提供帮助。您是否使用npm install soap-g在全球范围内安装了soap。如果你使用的是ubuntu,请尝试使用sudo npm安装soap-gsoap是以管理员身份全局安装的,我使用的是Windows 7。你可以尝试删除代理吗。在不使用代理的情况下尝试一次。同时尝试删除代理一次。在package.json文件/配置文件中将soap更新为最新版本,并将soap版本更新为最新版本。尝试npm config delete proxy alsodid是否找到解决方案?是否找到解决上述问题的方案?