----这是我的代码,文件名为 test.js -----
var curl = require('curlrequest');
var express = require('express');
var app = express();
var options = {
url: "https://api.github.com/repos/jiangmiao/node-curl",
encoding: null,
//, headers: { 'foo bar': 'wha' }
};
curl.request(options, function (err, data, meta) {
data = JSON.parse(data.toString());
console.log(data);
});
----得到错误---
Z:\arun\NODE>node test.js
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:975:11)
at Process.ChildProcess._handle.onexit (child_process.js:766:34)
---------------------我的节点详细信息是------------ {http_parser:' 1.0', 节点:' 0.10.5', v8:' 3.14.5.8', ares:' 1.9.0-DEV', 紫外线:' 0.10.5', zlib:' 1.2.3', 模块:' 11', openssl:' 1.0.1e', npm:' 1.2.18', ' email-node':' 1.0.0' }
---------------我的系统配置--- 64位操作系统WINDOWS 8,基于x64的处理器
我正在进行卷曲操作