I've installed at my node_modules project folder, and the error message shown like this.
Any deprecated functions possible?
TypeError: Object function createXHR(options, callback) {
options = extend({}, createXHR.defaults, options)
callback = once(callback)
var xhr
, uri = options.uri
if ("cors" in options) {
if (options.cors) {
xhr = new XDR()
} else {
xhr = new XHR()
}
} else {
if (protocolLess.test(uri) || hasProtocol.test(uri)) {
xhr = new XDR()
} else {
xhr = new XHR()
}
}
var load = options.status === false ? call(xhr, callback) :
callWithStatus(xhr, callback)
xhr.onreadystatechange = readystatechange
xhr.onload = load
xhr.onerror = error
// IE9 must have onprogress be set to a unique function.
xhr.onprogress = function () {
// IE must die
}
xhr.ontimeout = noop
xhr.open(options.method, uri)
xhr.timeout = "timeout" in options ? options.timeout : 5000
if (options.headers && xhr.setRequestHeader) {
Object.keys(options.headers).forEach(function (key) {
xhr.setRequestHeader(key, options.headers[key])
})
}
xhr.send(options.data)
return xhr
function readystatechange() {
this.readyState === 4 && load()
}
function error(evt) {
callback.call(this, evt)
}
} has no method 'open'