Giter VIP home page Giter VIP logo

node-curl's People

Contributors

jiangmiao avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-curl's Issues

How to make an insecure request?

I want to use -k (or --insecure) option, e.g. curl -k 'https://test.com/user/?delay=0sec'.
How can I set --insecure option with the node-curl?
Otherwise I'm getting Error: Peer certificate cannot be authenticated with given CA certificates

I can't install the package

Hi,

I am trying to use your module but I can't.

The output is:

>npm install node-curl --save
|
> [email protected] install C:\Users\PATH_TO_PROJECT\node_modules\node-curl
> sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configur
e build)

"sh" no se reconoce como un comando interno o externo,
programa o archivo por lotes ejecutable.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (
x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "node-curl" "--save"

npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `sh src/generate_curl_options_list.sh && (node
-gyp rebuild || node-waf configure build)`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'sh src/generate_curl_opti
ons_list.sh && (node-gyp rebuild || node-waf configure build)'.
npm ERR! This is most likely a problem with the node-curl package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-w
af configure build)
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-curl
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     C:\UsersPATH_TO_PROJECT\npm-debug.log

What is the problem?

Juan Antonio

Call easy_perform a second time on a connection

I'm opening a connection to an ftp server, getting a file listing, and then attempting to download the files. According to the libcurl docs, I should just give it another url, and call easy_perform again. This will reuse my connection to the ftp server.

How would I emulate this work flow with your library? Repeated calls like curl(url, opts, writeFile); fail with a message that curl is busy, and I should build another session.

window install error

when i use command "npm install node-curl --save",there is an error like this

> [email protected] install C:\Users\zengyang\Desktop\curl-demo\node_modules\node-curl
> sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build)

'sh' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "node-curl"
 "--save"
npm ERR! node v6.10.3
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

Example not working

Plain npm install, then:

$ node node_modules/node-curl/examples/test.js
[cURL 1] Set default options and reset cURL
[cURL 1] reset
[cURL 1] closed.
[cURL 1] opening.
[cURL 1] opened.
[cURL 1] Set option 'VERBOSE' to '1'
[cURL 1] closed.

/Users/petter/nctest/node_modules/node-curl/lib/Curl.js:66
throw new Error("unsupported option " + option);
^
Error: unsupported option VERBOSE
at Curl.setopt (/Users/petter/nctest/node_modules/node-curl/lib/Curl.js:66:13)
at Function.curl.setOptions (/Users/petter/nctest/node_modules/node-curl/lib/CurlBuilder.js:156:22)
at Function.curl.perform (/Users/petter/nctest/node_modules/node-curl/lib/CurlBuilder.js:78:14)
at curl (/Users/petter/nctest/node_modules/node-curl/lib/CurlBuilder.js:47:29)
at Object. (/Users/petter/nctest/node_modules/node-curl/examples/test.js:28:3)
at Object. (/Users/petter/nctest/node_modules/node-curl/examples/test.js:52:4)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
$

This I found out after getting no calls of my own working, and decided to look in the examples.

/p

npm install error

Got following error when trying to run npm install on Ubuntu

> sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build)

extract constants from 
generate src/integer_options.h
cat: : No such file or directory
generate src/string_options.h
cat: : No such file or directory
generate src/integer_infos.h
cat: : No such file or directory
generate src/string_infos.h
cat: : No such file or directory
generate src/double_infos.h
cat: : No such file or directory
make: Entering directory `/home/developer/nodescale/node_modules/node-curl/build'
  CXX(target) Release/obj.target/node-curl/src/node-curl.o
In file included from ../src/node-curl.cc:1:0:
../src/node-curl.h:7:23: fatal error: curl/curl.h: No such file or directory
compilation terminated.
make: *** [Release/obj.target/node-curl/src/node-curl.o] Error 1
make: Leaving directory `/home/developer/nodescale/node_modules/node-curl/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/developer/.nvm/v0.10.15/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack     at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 3.2.0-36-virtual
gyp ERR! command "node" "/home/developer/.nvm/v0.10.15/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/developer/nodescale/node_modules/node-curl
gyp ERR! node -v v0.10.15
gyp ERR! node-gyp -v v0.10.6
gyp ERR! not ok 
sh: 1: node-waf: not found
npm ERR! weird error 127
npm ERR! not ok code 0

The solution was to run:

> sudo apt-get install libcurl3-dev

May be worth noting in the installation instructions that libcurl-dev is required, or fixing in some other way.

cheers

Follow Location

I want to clone GitHub repo via API using curl, and while requesting git hub it responds back with a redirect location URL as follows:

 /repos/:owner/:repo/:archive_format/:ref

EXAMPLE: https://api.github.com/repos/Dev-Dipesh/docker_mesos.rb/tarball

Status: 302 Found
Location: https://codeload.github.com/me/myprivate/legacy.zip/master?login=me&token=thistokenexpires
X-RateLimit-Limit: 5000
X-RateLimit-Remaining: 4999

I'm using CURLOPT_FOLLOWLOCATION option in code for achieving this:

curl(
        'https://api.github.com/repos/Dev-Dipesh/docker_mesos.rb/tarball', 
        {CURLOPT_FOLLOWLOCATION: 1}, 
        function(err) {
            logger.info(this.status);
            logger.info('-----');
            logger.info(this.body);
            logger.info('-----');
            logger.info(this.info('SIZE_DOWNLOAD'));
      });

but it returns:

Error: unsupported option CURLOPT_FOLLOWLOCATION

In node-curl its FOLLOWLOCATION

Error: `make` failed with exit code: 2

Below is what I can ascertain as the relevant information. Please let me know if you need any further details.

stack Error: `make` failed with exit code: 2
stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
stack     at ChildProcess.emit (events.js:98:17)
stack     at Process.ChildProcess._handle.onexit (child_process.js:810:12)
System Linux 3.2.0-69-generic
command "node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
cwd /home/mthomas/node_modules/node-curl
node -v v0.10.32
node-gyp -v v1.0.1
not ok 
sh: 1: node-waf: not found

[email protected] install: `sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build)`
Exit status 127

Failed at the [email protected] install script.
This is most likely a problem with the node-curl package,
not with npm itself.
Tell the author that this fails on your system:
    sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build)
You can get their info via:
    npm owner ls node-curl
There is likely additional logging output above.
System Linux 3.2.0-69-generic
command "/usr/bin/node" "/usr/bin/npm" "install" "node-curl"
cwd /home/mthomas/node_modules/node-curl
node -v v0.10.32
npm -v 1.4.28
code ELIFECYCLE
not ok code 0

node-gyp

when I run node-gyp I got this error:

SyntaxError: EOL while scanning string literal

make: *** [Makefile] Error 1
make: Leaving directory /home/slim/testa/build' gyp ERR! build error gyp ERR! stack Error:make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 3.13.0-32-generic
gyp ERR! command "node" "/usr/bin/node-gyp" "build"
gyp ERR! cwd /home/slim/testa
gyp ERR! node -v v0.10.37
gyp ERR! node-gyp -v v2.0.2
gyp ERR! not ok

Request using POST

Hello,

I can't find anything about this in the provided documentation. Is it possible to make POST requests ( and send along some parameters )?
Thanks!

node-curl Segmentation fault

I write a simple code, after it run a few time, it got " Segmentation fault" error! I try so many times, it got the same result! what's problem?

The code as follows:

var nodecurl = require('node-curl');
function getpic(requrl)
{
var curl = nodecurl.create();
var option = {
USERAGENT: "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; 360SE)",
COOKIEJAR: "cookie.txt",
VERBOSE: 1,
RAW: 1
};
curl.reset();
curl.debug = 1;
curl(requrl,
option,
function(err) {
if(err){ console.log(err); }
console.log(curl.info('COOKIELIST'));
curl.close();
});
}

function main()
{
var cnt = 2000;
var url = "http://www.soso.com/q?pid=s.idx&cid=s.idx.se&w=%C7%D0%B8%E2";
while(cnt > 0 )
{
getpic(url);
cnt --;
}
}

main();


run result as follows:
....
[cURL 381] closed.
[Error: Couldn't connect to server]
[]
[cURL 386] closed.
[Error: Couldn't connect to server]
[]
[cURL 391] closed.
[Error: Couldn't connect to server]
[]
[cURL 393] closed.
[Error: Couldn't connect to server]
[]
[cURL 400] closed.
[Error: Couldn't connect to server]
[]
[cURL 402] closed.
[Error: Couldn't connect to server]
[]
[cURL 403] closed.
[Error: Couldn't connect to server]
[]
[cURL 406] closed.
[Error: Couldn't connect to server]
Segmentation fault
[root@localhost linkcheckjs]#

Cannot find module 'node_modules/node-curl/lib/../build/default/node-curl' in nodeJs v0.12*

Rollback version node v0.10* is ok.
v 0.12* an error

/mnt/hgfs/Ubuntu/projects.dev/pamani/node_modules/mysql/lib/protocol/Parser.js:82
        throw err;
              ^
Error: Cannot find module '/mnt/hgfs/Ubuntu/projects.dev/pamani/node_modules/node-curl/lib/../build/default/node-curl'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/mnt/hgfs/Ubuntu/projects.dev/pamani/node_modules/node-curl/lib/Curl.js:10:12)
    at Object.<anonymous> (/mnt/hgfs/Ubuntu/projects.dev/pamani/node_modules/node-curl/lib/Curl.js:174:4)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)

Installation errors

When I try install on CentOS 6.3, this errors happen.

Libcurl is already installed.

../src/node-curl.h: In static member function ‘static v8::Handlev8::Value NodeCurl::Initialize(v8::Handlev8::Object)’:
../src/node-curl.h:403: error: ‘CURLOPT_MAIL_RCPT’ was not declared in this scope
../src/node-curl.h:407: error: ‘CURLOPT_RESOLVE’ was not declared in this scope
../src/node-curl.h:409: error: too many initializers for ‘NodeCurl::CurlOption’
../src/node-curl.h:409: error: too many initializers for ‘NodeCurl::CurlOption’
Waf: Leaving directory `/root/mongo/node_modules/node-curl/build'
Build failed: -> task failed (err #1):
{task: cxx node-curl.cc -> node-curl_1.o}

Parameter --data equivalent

Via unix command I do

curl -k 'https://test.com/user?delay=0sec' -H 'Accept-Encoding: gzip, deflate' --data 'name=master&value=test'

How can I achieve this using node-curl?

Cant install

Cant install HOmebridge just gettin This error

gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.1.7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/ed25519
gyp ERR! node -v v4.2.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm ERR! Linux 4.1.7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "homebridge"
npm ERR! node v4.2.1
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'.
npm ERR! This is most likely a problem with the curve25519 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls curve25519
npm ERR! There is likely additional logging output above.

Multipart upload

I am trying to use node-curl to post an image to facebook's api, I have to use multipart/form-data as the content type because that is what their api expects. I thought node-curl would simplify this process, because facebook expects a simple curl request :
curl
-F '[email protected]'
-F 'access_token=___'
"https://graph.facebook.com/act_368811234/adimages"

I tried duplicating the multipart example, but it failed, and trying to get this module to tell me anything useful about what happened has been a nightmare... no examples on how to "Retrieve data from curl". status, body, and header are all undefined, I'm assuming because the request failed. But the request's error handler callback is not firing at all. Trying to call .info() on the object built by CurlBuilder mysteriously logs some more information (no idea how this is happening as I am passing no parameters to .info(), which should then immediately throw an error, which it does eventually, but it logs some stuff) and I have no idea what to pass it (tried 'RESPONSE_CODE' which failed).
Here is my code for reference:

var nc = require('node-curl');
var curlReq = nc.create();
curlReq.open();
curlReq('https://graph.facebook.com/act_1374394842779617/adimages', {
VERBOSE: 1,
MULTIPART: [
{name: 'balloons.jpg', file: req.files.file.path, type: 'image/jpeg'},
{name: 'access_token', contents: accessToken, type: 'text/plain'}
]
}, function(e) {
console.log("ERROR!!!!");
console.log(e);
console.log(this.body);
this.close();
});

    console.log(curlReq);

    console.log(curlReq.status);
    console.log(curlReq.body);
    console.log(curlReq.curl_);
    curlReq.close();

Here is my console's log:

{ [Function]
perform: [Function],
setDefaultOptions: [Function],
log: [Function],
setOptions: [Function],
setopts: [Function],

  • Closing connection #0
    info: [Function],
    end: [Function],
    close: [Function],
    open: [Function],
    reset: [Function],
    create: [Function],
    get_count: [Function],
    id: 2,
    curl_:
    { options: {},
    httppost: [ [Object], [Object] ],
    chunks: [],
    on_write: [Function],
    on_end: [Function],
    on_error: [Function],
    id: 1 },
    defaultOptions: {},
    running: true,
    url: 'https://graph.facebook.com/act_1374394842779617/adimages',
    options: { VERBOSE: 1, MULTIPART: [ [Object], [Object] ] },
    debug: undefined,
    effectiveOptions: { VERBOSE: 1, MULTIPART: [ [Object], [Object] ] } }
    undefined
    undefined
    { options: {},
    httppost:
    [ [ 0,
    <Buffer 62 61 6c 6c 6f 6f 6e 73 2e 6a 70 67>,
    1,
    <Buffer 2f 76 61 72 2f 66 6f 6c 64 65 72 73 2f 68 67 2f 7a 7a 30 6a 36 62 64 39 32 64 62 35 6b 6b 73 76 71 35 6d 6d 6a 67 70 6d 30 30 30 32 37 39 2f 54 2f 30 35 ...>,
    3,
    <Buffer 69 6d 61 67 65 2f 6a 70 65 67> ],
    [ 0,
    <Buffer 61 63 63 65 73 73 5f 74 6f 6b 65 6e>,
    2,
    <Buffer 43 41 41 49 63 49 49 77 49 57 63 41 42 41 43 68 43 6f 77 35 53 4c 77 44 72 71 61 72 73 70 61 31 77 37 6f 5a 41 69 37 77 73 62 77 4c 7a 74 34 38 37 43 78 ...>,
    3,
    <Buffer 74 65 78 74 2f 70 6c 61 69 6e> ] ],
    chunks: [],
    on_write: [Function],
    on_end: [Function],
    on_error: [Function],
    id: 1 }

Also, I don't know if you intended for other people to use this module, but the documentation and examples aren't very helpful. Needs to be way more detailed in exposing what's going on behind the scenes.

Win32 support?

Setup in win8.1 blows up in an awful way.
Is this platform supported?

npm version bump please

Hello,

Your code here works well, thank you. On github you provide access to response headers but that facility is missing for the version in npm. Could you please make your latest version available there? Many thanks.

Regards, Max

Option URL is not supported

whenever i am use any test script from wiki i am getting this error

Error: unsupported option URL
at Curl.setopt (/Users/SMAK/vagrant/XXXXX/node/public_html/upload/node_modules/node-curl/lib/Curl.js:67:13)
at Function.curl.setOptions (/Users/SMAK/vagrant/XXXXX/node/public_html/upload/node_modules/node-curl/lib/CurlBuilder.js:140:22)
at Function.curl.perform (/Users/SMAK/vagrant/XXXXX/node/public_html/upload/node_modules/node-curl/lib/CurlBuilder.js:67:14)
at curl (/Users/SMAK/vagrant/XXXXX/node/public_html/upload/node_modules/node-curl/lib/CurlBuilder.js:36:29)
at /Users/SMAK/vagrant/XXXXX/node/public_html/upload/app.js:39:13
at fn (/Users/SMAK/vagrant/XXXXX/node/public_html/upload/node_modules/async/lib/async.js:582:34)
at Object._onImmediate (/Users/SMAK/vagrant/XXXXX/node/public_html/upload/node_modules/async/lib/async.js:498:34)
at processImmediate as _immediateCallback

Can't install on OSX

I get a bunch of errors trying to install this with Node 0.12.7

# npm install --save node-curl
npm WARN package.json @ No description
npm WARN package.json @ No repository field.
npm WARN package.json @ No README data
npm WARN package.json @ No license field.
/
> [email protected] install /Users/user/sandbox/dmw-php/node_modules/node-curl
> sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build)

extract constants from /usr/include/curl/curl.h
generate src/integer_options.h
generate src/string_options.h
generate src/integer_infos.h
generate src/string_infos.h
generate src/double_infos.h
  CXX(target) Release/obj.target/node-curl/src/node-curl.o
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:178:43: error: no type named 'Arguments' in namespace 'v8'; did you mean
      'v8::internal::Arguments'?
        static v8::Handle<v8::Value> close(const v8::Arguments & args)
                                                 ^~~~~~~~~~~~~
                                                 v8::internal::Arguments
/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:127:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:265:45: error: no type named 'Arguments' in namespace 'v8'; did you mean
      'v8::internal::Arguments'?
        static v8::Handle<v8::Value> getinfo(const v8::Arguments &args)
                                                   ^~~~~~~~~~~~~
                                                   v8::internal::Arguments
/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:127:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:278:49: error: no type named 'Arguments' in namespace 'v8'; did you mean
      'v8::internal::Arguments'?
        static v8::Handle<v8::Value> getinfo_int(const v8::Arguments & args)
                                                       ^~~~~~~~~~~~~
                                                       v8::internal::Arguments
/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:127:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:283:49: error: no type named 'Arguments' in namespace 'v8'; did you mean
      'v8::internal::Arguments'?
        static v8::Handle<v8::Value> getinfo_str(const v8::Arguments & args)
                                                       ^~~~~~~~~~~~~
                                                       v8::internal::Arguments
/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:127:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:288:52: error: no type named 'Arguments' in namespace 'v8'; did you mean
      'v8::internal::Arguments'?
        static v8::Handle<v8::Value> getinfo_double(const v8::Arguments & args)
                                                          ^~~~~~~~~~~~~
                                                          v8::internal::Arguments
/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:127:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:293:51: error: no type named 'Arguments' in namespace 'v8'; did you mean
      'v8::internal::Arguments'?
        static v8::Handle<v8::Value> getinfo_slist(const v8::Arguments & args)
                                                         ^~~~~~~~~~~~~
                                                         v8::internal::Arguments
/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:127:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:330:48: error: no type named 'Arguments' in namespace 'v8'; did you mean
      'v8::internal::Arguments'?
        static v8::Handle<v8::Value> setopt_int(const v8::Arguments & args)
                                                      ^~~~~~~~~~~~~
                                                      v8::internal::Arguments
/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:127:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:335:48: error: no type named 'Arguments' in namespace 'v8'; did you mean
      'v8::internal::Arguments'?
        static v8::Handle<v8::Value> setopt_str(const v8::Arguments & args)
                                                      ^~~~~~~~~~~~~
                                                      v8::internal::Arguments
/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:127:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:347:50: error: no type named 'Arguments' in namespace 'v8'; did you mean
      'v8::internal::Arguments'?
        static v8::Handle<v8::Value> setopt_slist(const v8::Arguments & args)
                                                        ^~~~~~~~~~~~~
                                                        v8::internal::Arguments
/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:127:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:355:53: error: no type named 'Arguments' in namespace 'v8'; did you mean
      'v8::internal::Arguments'?
        static v8::Handle<v8::Value> setopt_httppost(const v8::Arguments & args)
                                                           ^~~~~~~~~~~~~
                                                           v8::internal::Arguments
/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:127:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:426:41: error: no type named 'Arguments' in namespace 'v8'; did you mean
      'v8::internal::Arguments'?
        static v8::Handle<v8::Value> New(const v8::Arguments & args)
                                               ^~~~~~~~~~~~~
                                               v8::internal::Arguments
/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:127:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:433:45: error: no type named 'Arguments' in namespace 'v8'; did you mean
      'v8::internal::Arguments'?
        static v8::Handle<v8::Value> process(const v8::Arguments & args)
                                                   ^~~~~~~~~~~~~
                                                   v8::internal::Arguments
/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:127:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:476:45: error: no type named 'Arguments' in namespace 'v8'; did you mean
      'v8::internal::Arguments'?
        static v8::Handle<v8::Value> perform(const v8::Arguments & args)
                                                   ^~~~~~~~~~~~~
                                                   v8::internal::Arguments
/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:127:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:496:47: error: no type named 'Arguments' in namespace 'v8'; did you mean
      'v8::internal::Arguments'?
        static v8::Handle<v8::Value> get_count(const v8::Arguments & args )
                                                     ^~~~~~~~~~~~~
                                                     v8::internal::Arguments
/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:127:7: note:
      'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:124:11: error: no member named 'AdjustAmountOfExternalAllocatedMemory' in
      'v8::V8'
                v8::V8::AdjustAmountOfExternalAllocatedMemory(2*4096);
                ~~~~~~~~^
../src/node-curl.h:125:11: error: no member named 'SetPointerInInternalField' in
      'v8::Object'; did you mean 'SetAlignedPointerInInternalField'?
                object->SetPointerInInternalField(0, this);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~
                        SetAlignedPointerInInternalField
/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:2266:8: note:
      'SetAlignedPointerInInternalField' declared here
  void SetAlignedPointerInInternalField(int index, void* value);
       ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:126:40: error: 'New' is a private member of
      'v8::PersistentBase<v8::Object>'
                handle = v8::Persistent<v8::Object>::New(object);
                                                     ^
/Users/user/.node-gyp/0.12.7/deps/v8/include/v8.h:572:23: note: declared private here
  V8_INLINE static T* New(Isolate* isolate, T* that);
                      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:126:12: error: too few arguments to function call, expected 2, have 1;
      did you mean '::NodeCurl::New'?
                handle = v8::Persistent<v8::Object>::New(object);
                         ^~
                         ::NodeCurl::New
../src/node-curl.h:426:31: note: '::NodeCurl::New' declared here
        static v8::Handle<v8::Value> New(const v8::Arguments & args)
                                     ^
../src/node-curl.h:127:10: error: no member named 'MakeWeak' in 'v8::Persistent<v8::Object,
      v8::NonCopyablePersistentTraits<v8::Object> >'
                handle.MakeWeak(this, destructor);
                ~~~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/node-curl/src/node-curl.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack     at ChildProcess.emit (events.js:110:17)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (child_process.js:1074:12)
gyp ERR! System Darwin 14.3.0
gyp ERR! command "node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/user/sandbox/dmw-php/node_modules/node-curl
gyp ERR! node -v v0.12.7
gyp ERR! node-gyp -v v2.0.1
gyp ERR! not ok
sh: node-waf: command not found
npm ERR! Darwin 14.3.0
npm ERR! argv "node" "/usr/local/bin/npm" "install" "--save" "node-curl"
npm ERR! node v0.12.7
npm ERR! npm  v2.11.3
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! [email protected] install: `sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build)`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install script 'sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build)'.
npm ERR! This is most likely a problem with the node-curl package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build)
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-curl
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/user/sandbox/dmw-php/npm-debug.log

node-curl istall error

Got following error when trying to run sudo npm install node-curl --save in AWS ubuntu 14.04

sudo npm install node-curl --save
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
npm WARN package.json [email protected] license should be a valid SPDX license expression
/

[email protected] install /home/ubuntu/node12/node_modules/node-curl
sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build)

extract constants from /usr/include/curl/curl.h
generate src/integer_options.h
generate src/string_options.h
generate src/integer_infos.h
generate src/string_infos.h
generate src/double_infos.h
make: Entering directory /home/ubuntu/node12/node_modules/node-curl/build' CXX(target) Release/obj.target/node-curl/src/node-curl.o In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:178:43: error: ‘Arguments’ in namespace ‘v8’ does not name a type static v8::Handle<v8::Value> close(const v8::Arguments & args) ^ ../src/node-curl.h:178:59: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] static v8::Handle<v8::Value> close(const v8::Arguments & args) ^ ../src/node-curl.h:265:45: error: ‘Arguments’ in namespace ‘v8’ does not name a type static v8::Handle<v8::Value> getinfo(const v8::Arguments &args) ^ ../src/node-curl.h:265:60: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] static v8::Handle<v8::Value> getinfo(const v8::Arguments &args) ^ ../src/node-curl.h:278:49: error: ‘Arguments’ in namespace ‘v8’ does not name a type static v8::Handle<v8::Value> getinfo_int(const v8::Arguments & args) ^ ../src/node-curl.h:278:65: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] static v8::Handle<v8::Value> getinfo_int(const v8::Arguments & args) ^ ../src/node-curl.h:283:49: error: ‘Arguments’ in namespace ‘v8’ does not name a type static v8::Handle<v8::Value> getinfo_str(const v8::Arguments & args) ^ ../src/node-curl.h:283:65: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] static v8::Handle<v8::Value> getinfo_str(const v8::Arguments & args) ^ ../src/node-curl.h:288:52: error: ‘Arguments’ in namespace ‘v8’ does not name a type static v8::Handle<v8::Value> getinfo_double(const v8::Arguments & args) ^ ../src/node-curl.h:288:68: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] static v8::Handle<v8::Value> getinfo_double(const v8::Arguments & args) ^ ../src/node-curl.h:293:51: error: ‘Arguments’ in namespace ‘v8’ does not name a type static v8::Handle<v8::Value> getinfo_slist(const v8::Arguments & args) ^ ../src/node-curl.h:293:67: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] static v8::Handle<v8::Value> getinfo_slist(const v8::Arguments & args) ^ ../src/node-curl.h:330:48: error: ‘Arguments’ in namespace ‘v8’ does not name a type static v8::Handle<v8::Value> setopt_int(const v8::Arguments & args) ^ ../src/node-curl.h:330:64: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] static v8::Handle<v8::Value> setopt_int(const v8::Arguments & args) ^ ../src/node-curl.h:335:48: error: ‘Arguments’ in namespace ‘v8’ does not name a type static v8::Handle<v8::Value> setopt_str(const v8::Arguments & args) ^ ../src/node-curl.h:335:64: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] static v8::Handle<v8::Value> setopt_str(const v8::Arguments & args) ^ ../src/node-curl.h:347:50: error: ‘Arguments’ in namespace ‘v8’ does not name a type static v8::Handle<v8::Value> setopt_slist(const v8::Arguments & args) ^ ../src/node-curl.h:347:66: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] static v8::Handle<v8::Value> setopt_slist(const v8::Arguments & args) ^ ../src/node-curl.h:355:53: error: ‘Arguments’ in namespace ‘v8’ does not name a type static v8::Handle<v8::Value> setopt_httppost(const v8::Arguments & args) ^ ../src/node-curl.h:355:69: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] static v8::Handle<v8::Value> setopt_httppost(const v8::Arguments & args) ^ ../src/node-curl.h:426:41: error: ‘Arguments’ in namespace ‘v8’ does not name a type static v8::Handle<v8::Value> New(const v8::Arguments & args) ^ ../src/node-curl.h:426:57: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] static v8::Handle<v8::Value> New(const v8::Arguments & args) ^ ../src/node-curl.h:433:45: error: ‘Arguments’ in namespace ‘v8’ does not name a type static v8::Handle<v8::Value> process(const v8::Arguments & args) ^ ../src/node-curl.h:433:61: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] static v8::Handle<v8::Value> process(const v8::Arguments & args) ^ ../src/node-curl.h:476:45: error: ‘Arguments’ in namespace ‘v8’ does not name a type static v8::Handle<v8::Value> perform(const v8::Arguments & args) ^ ../src/node-curl.h:476:61: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] static v8::Handle<v8::Value> perform(const v8::Arguments & args) ^ ../src/node-curl.h:496:47: error: ‘Arguments’ in namespace ‘v8’ does not name a type static v8::Handle<v8::Value> get_count(const v8::Arguments & args ) ^ ../src/node-curl.h:496:63: error: ISO C++ forbids declaration of ‘args’ with no type [-fpermissive] static v8::Handle<v8::Value> get_count(const v8::Arguments & args ) ^ ../src/node-curl.h: In constructor ‘NodeCurl::NodeCurl(v8::Handle<v8::Object>)’: ../src/node-curl.h:124:3: error: ‘AdjustAmountOfExternalAllocatedMemory’ is not a member of ‘v8::V8’ v8::V8::AdjustAmountOfExternalAllocatedMemory(2*4096); ^ ../src/node-curl.h:125:11: error: ‘class v8::Object’ has no member named ‘SetPointerInInternalField’ object->SetPointerInInternalField(0, this); ^ ../src/node-curl.h:126:50: error: no matching function for call to ‘v8::Persistent<v8::Object>::New(v8::Handle<v8::Object>&)’ handle = v8::Persistent<v8::Object>::New(object); ^ ../src/node-curl.h:126:50: note: candidate is: In file included from ../src/node-curl.h:4:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:7181:4: note: static T* v8::PersistentBase<T>::New(v8::Isolate*, T*) [with T = v8::Object] T* PersistentBase<T>::New(Isolate* isolate, T* that) { ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:7181:4: note: candidate expects 2 arguments, 1 provided In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:127:10: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘MakeWeak’ handle.MakeWeak(this, destructor); ^ ../src/node-curl.h: In destructor ‘NodeCurl::~NodeCurl()’: ../src/node-curl.h:145:3: error: ‘AdjustAmountOfExternalAllocatedMemory’ is not a member of ‘v8::V8’ v8::V8::AdjustAmountOfExternalAllocatedMemory(-2*4096); ^ ../src/node-curl.h: In static member function ‘static void NodeCurl::destructor(v8::Persistent<v8::Value>, void*)’: ../src/node-curl.h:166:40: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::Value>’ v8::Handle<v8::Object> object = value->ToObject(); ^ ../src/node-curl.h:167:40: error: ‘class v8::Object’ has no member named ‘GetPointerFromInternalField’ NodeCurl * curl = (NodeCurl*)object->GetPointerFromInternalField(0); ^ ../src/node-curl.h: In member function ‘void NodeCurl::close()’: ../src/node-curl.h:173:9: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::Object>’ handle->SetPointerInInternalField(0, NULL); ^ ../src/node-curl.h:174:10: error: ‘class v8::Persistent<v8::Object>’ has no member named ‘Dispose’ handle.Dispose(); ^ ../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::close(const int&)’: ../src/node-curl.h:180:38: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ NodeCurl * node_curl = unwrap(args.This()); ^ ../src/node-curl.h:183:15: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ return args.This(); ^ ../src/node-curl.h: In static member function ‘static NodeCurl* NodeCurl::unwrap(v8::Handle<v8::Object>)’: ../src/node-curl.h:189:28: error: ‘class v8::Object’ has no member named ‘GetPointerFromInternalField’ return (NodeCurl*)value->GetPointerFromInternalField(0); ^ ../src/node-curl.h: In member function ‘size_t NodeCurl::on_write(char*, size_t)’: ../src/node-curl.h:209:84: error: ‘NewSymbol’ is not a member of ‘v8::String’ static v8::Persistent<v8::String> SYM_ON_WRITE = v8::Persistent<v8::String>::New(v8::String::NewSymbol("on_write")); ^ ../src/node-curl.h:210:36: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::Object>’ v8::Handle<v8::Value> cb = handle->Get(SYM_ON_WRITE); ^ ../src/node-curl.h:213:17: error: expected primary-expression before ‘*’ token node::Buffer * buffer = node::Buffer::New(data, n); ^ ../src/node-curl.h:213:19: error: ‘buffer’ was not declared in this scope node::Buffer * buffer = node::Buffer::New(data, n); ^ ../src/node-curl.h:213:53: error: no matching function for call to ‘New(char*&, size_t&)’ node::Buffer * buffer = node::Buffer::New(data, n); ^ ../src/node-curl.h:213:53: note: candidates are: In file included from ../src/node-curl.h:6:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:28:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, size_t) NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length); ^ /home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:28:40: note: no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’ /home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:31:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding) NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, ^ /home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:31:40: note: no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’ /home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:36:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*) NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, ^ /home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:36:40: note: candidate expects 5 arguments, 2 provided /home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:43:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t) NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, ^ /home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:43:40: note: candidate expects 3 arguments, 2 provided In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:215:77: error: no matching function for call to ‘v8::Object::CallAsFunction(v8::Persistent<v8::Object>&, int, v8::Handle<v8::Value> [1])’ v8::Handle<v8::Value> rt = cb->ToObject()->CallAsFunction(handle, 1, argv); ^ ../src/node-curl.h:215:77: note: candidates are: In file included from /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:23:0, from ../src/node-curl.h:4, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2910:34: note: v8::Local<v8::Value> v8::Object::CallAsFunction(v8::Local<v8::Value>, int, v8::Local<v8::Value>*) Local<Value> CallAsFunction(Local<Value> recv, int argc, ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8config.h:347:48: note: in definition of macro ‘V8_DEPRECATE_SOON’ #define V8_DEPRECATE_SOON(message, declarator) declarator ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2910:34: note: no known conversion for argument 1 from ‘v8::Persistent<v8::Object>’ to ‘v8::Local<v8::Value>’ Local<Value> CallAsFunction(Local<Value> recv, int argc, ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8config.h:347:48: note: in definition of macro ‘V8_DEPRECATE_SOON’ #define V8_DEPRECATE_SOON(message, declarator) declarator ^ In file included from ../src/node-curl.h:4:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2912:43: note: v8::MaybeLocal<v8::Value> v8::Object::CallAsFunction(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) V8_WARN_UNUSED_RESULT MaybeLocal<Value> CallAsFunction(Local<Context> context, ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2912:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h: In member function ‘size_t NodeCurl::on_header(char*, size_t)’: ../src/node-curl.h:226:85: error: ‘NewSymbol’ is not a member of ‘v8::String’ static v8::Persistent<v8::String> SYM_ON_HEADER = v8::Persistent<v8::String>::New(v8::String::NewSymbol("on_header")); ^ ../src/node-curl.h:227:36: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::Object>’ v8::Handle<v8::Value> cb = handle->Get(SYM_ON_HEADER); ^ ../src/node-curl.h:230:17: error: expected primary-expression before ‘*’ token node::Buffer * buffer = node::Buffer::New(data, n); ^ ../src/node-curl.h:230:19: error: ‘buffer’ was not declared in this scope node::Buffer * buffer = node::Buffer::New(data, n); ^ ../src/node-curl.h:230:53: error: no matching function for call to ‘New(char*&, size_t&)’ node::Buffer * buffer = node::Buffer::New(data, n); ^ ../src/node-curl.h:230:53: note: candidates are: In file included from ../src/node-curl.h:6:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:28:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, size_t) NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length); ^ /home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:28:40: note: no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’ /home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:31:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, v8::Local<v8::String>, node::encoding) NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, ^ /home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:31:40: note: no known conversion for argument 1 from ‘char*’ to ‘v8::Isolate*’ /home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:36:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t, node::Buffer::FreeCallback, void*) NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, ^ /home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:36:40: note: candidate expects 5 arguments, 2 provided /home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:43:40: note: v8::MaybeLocal<v8::Object> node::Buffer::New(v8::Isolate*, char*, size_t) NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, ^ /home/ubuntu/.node-gyp/4.2.2/include/node/node_buffer.h:43:40: note: candidate expects 3 arguments, 2 provided In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:232:77: error: no matching function for call to ‘v8::Object::CallAsFunction(v8::Persistent<v8::Object>&, int, v8::Handle<v8::Value> [1])’ v8::Handle<v8::Value> rt = cb->ToObject()->CallAsFunction(handle, 1, argv); ^ ../src/node-curl.h:232:77: note: candidates are: In file included from /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:23:0, from ../src/node-curl.h:4, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2910:34: note: v8::Local<v8::Value> v8::Object::CallAsFunction(v8::Local<v8::Value>, int, v8::Local<v8::Value>*) Local<Value> CallAsFunction(Local<Value> recv, int argc, ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8config.h:347:48: note: in definition of macro ‘V8_DEPRECATE_SOON’ #define V8_DEPRECATE_SOON(message, declarator) declarator ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2910:34: note: no known conversion for argument 1 from ‘v8::Persistent<v8::Object>’ to ‘v8::Local<v8::Value>’ Local<Value> CallAsFunction(Local<Value> recv, int argc, ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8config.h:347:48: note: in definition of macro ‘V8_DEPRECATE_SOON’ #define V8_DEPRECATE_SOON(message, declarator) declarator ^ In file included from ../src/node-curl.h:4:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2912:43: note: v8::MaybeLocal<v8::Value> v8::Object::CallAsFunction(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) V8_WARN_UNUSED_RESULT MaybeLocal<Value> CallAsFunction(Local<Context> context, ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2912:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h: In member function ‘void NodeCurl::on_end(CURLMsg*)’: ../src/node-curl.h:243:82: error: ‘NewSymbol’ is not a member of ‘v8::String’ static v8::Persistent<v8::String> SYM_ON_END = v8::Persistent<v8::String>::New(v8::String::NewSymbol("on_end")); ^ ../src/node-curl.h:244:36: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::Object>’ v8::Handle<v8::Value> cb = handle->Get(SYM_ON_END); ^ ../src/node-curl.h:248:50: error: no matching function for call to ‘v8::Object::CallAsFunction(v8::Persistent<v8::Object>&, int, v8::Handle<v8::Value> [0])’ cb->ToObject()->CallAsFunction(handle, 0, argv); ^ ../src/node-curl.h:248:50: note: candidates are: In file included from /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:23:0, from ../src/node-curl.h:4, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2910:34: note: v8::Local<v8::Value> v8::Object::CallAsFunction(v8::Local<v8::Value>, int, v8::Local<v8::Value>*) Local<Value> CallAsFunction(Local<Value> recv, int argc, ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8config.h:347:48: note: in definition of macro ‘V8_DEPRECATE_SOON’ #define V8_DEPRECATE_SOON(message, declarator) declarator ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2910:34: note: no known conversion for argument 1 from ‘v8::Persistent<v8::Object>’ to ‘v8::Local<v8::Value>’ Local<Value> CallAsFunction(Local<Value> recv, int argc, ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8config.h:347:48: note: in definition of macro ‘V8_DEPRECATE_SOON’ #define V8_DEPRECATE_SOON(message, declarator) declarator ^ In file included from ../src/node-curl.h:4:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2912:43: note: v8::MaybeLocal<v8::Value> v8::Object::CallAsFunction(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) V8_WARN_UNUSED_RESULT MaybeLocal<Value> CallAsFunction(Local<Context> context, ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2912:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h: In member function ‘void NodeCurl::on_error(CURLMsg*)’: ../src/node-curl.h:254:84: error: ‘NewSymbol’ is not a member of ‘v8::String’ static v8::Persistent<v8::String> SYM_ON_ERROR = v8::Persistent<v8::String>::New(v8::String::NewSymbol("on_error")); ^ ../src/node-curl.h:255:36: error: base operand of ‘->’ has non-pointer type ‘v8::Persistent<v8::Object>’ v8::Handle<v8::Value> cb = handle->Get(SYM_ON_ERROR); ^ ../src/node-curl.h:258:57: error: ‘New’ is not a member of ‘v8::String’ v8::Handle<v8::Value> argv[] = {v8::Exception::Error(v8::String::New(curl_easy_strerror(msg->data.result)))}; ^ ../src/node-curl.h:259:50: error: no matching function for call to ‘v8::Object::CallAsFunction(v8::Persistent<v8::Object>&, int, v8::Handle<v8::Value> [1])’ cb->ToObject()->CallAsFunction(handle, 1, argv); ^ ../src/node-curl.h:259:50: note: candidates are: In file included from /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:23:0, from ../src/node-curl.h:4, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2910:34: note: v8::Local<v8::Value> v8::Object::CallAsFunction(v8::Local<v8::Value>, int, v8::Local<v8::Value>*) Local<Value> CallAsFunction(Local<Value> recv, int argc, ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8config.h:347:48: note: in definition of macro ‘V8_DEPRECATE_SOON’ #define V8_DEPRECATE_SOON(message, declarator) declarator ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2910:34: note: no known conversion for argument 1 from ‘v8::Persistent<v8::Object>’ to ‘v8::Local<v8::Value>’ Local<Value> CallAsFunction(Local<Value> recv, int argc, ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8config.h:347:48: note: in definition of macro ‘V8_DEPRECATE_SOON’ #define V8_DEPRECATE_SOON(message, declarator) declarator ^ In file included from ../src/node-curl.h:4:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2912:43: note: v8::MaybeLocal<v8::Value> v8::Object::CallAsFunction(v8::Local<v8::Context>, v8::Local<v8::Value>, int, v8::Local<v8::Value>*) V8_WARN_UNUSED_RESULT MaybeLocal<Value> CallAsFunction(Local<Context> context, ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2912:43: note: candidate expects 4 arguments, 3 provided In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::getinfo(const int&)’: ../src/node-curl.h:268:38: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ NodeCurl * node_curl = unwrap(args.This()); ^ ../src/node-curl.h:269:35: error: invalid types ‘const int[int]’ for array subscript CURLINFO info = (CURLINFO)args[0]->Int32Value(); ^ ../src/node-curl.h:275:51: error: too few arguments to function ‘v8::Local<v8::Primitive> v8::Null(v8::Isolate*)’ return result ? JsClass::New(result) : v8::Null(); ^ In file included from ../src/node-curl.h:4:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:8130:18: note: declared here Local<Primitive> Null(Isolate* isolate) { ^ In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::getinfo_slist(const int&)’: ../src/node-curl.h:296:37: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ NodeCurl* node_curl = unwrap(args.This()); ^ ../src/node-curl.h:297:35: error: invalid types ‘const int[int]’ for array subscript CURLINFO info = (CURLINFO)args[0]->Int32Value(); ^ ../src/node-curl.h:303:48: error: no matching function for call to ‘v8::Array::New()’ v8::Handle<v8::Array> array = v8::Array::New(); ^ ../src/node-curl.h:303:48: note: candidate is: In file included from ../src/node-curl.h:4:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2965:23: note: static v8::Local<v8::Array> v8::Array::New(v8::Isolate*, int) static Local<Array> New(Isolate* isolate, int length = 0); ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2965:23: note: candidate expects 2 arguments, 0 provided In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:309:33: error: ‘New’ is not a member of ‘v8::String’ array->Set(array->Length(), v8::String::New(cur->data)); ^ ../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::setopt_int(const int&)’: ../src/node-curl.h:332:22: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ return unwrap(args.This())->setopt(args[0], args[1]->Int32Value()); ^ ../src/node-curl.h:332:44: error: invalid types ‘const int[int]’ for array subscript return unwrap(args.This())->setopt(args[0], args[1]->Int32Value()); ^ ../src/node-curl.h:332:53: error: invalid types ‘const int[int]’ for array subscript return unwrap(args.This())->setopt(args[0], args[1]->Int32Value()); ^ ../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::setopt_str(const int&)’: ../src/node-curl.h:339:40: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ NodeCurl * node_curl = unwrap(args.This()); ^ ../src/node-curl.h:340:19: error: invalid types ‘const int[int]’ for array subscript int key = args[0]->Int32Value(); ^ ../src/node-curl.h:341:37: error: invalid types ‘const int[int]’ for array subscript v8::String::Utf8Value value(args[1]); ^ ../src/node-curl.h:344:22: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ return unwrap(args.This())->setopt(args[0], node_curl->strings[key].c_str() ); ^ ../src/node-curl.h:344:44: error: invalid types ‘const int[int]’ for array subscript return unwrap(args.This())->setopt(args[0], node_curl->strings[key].c_str() ); ^ ../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::setopt_slist(const int&)’: ../src/node-curl.h:349:40: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ NodeCurl * node_curl = unwrap(args.This()); ^ ../src/node-curl.h:350:49: error: invalid types ‘const int[int]’ for array subscript curl_slist * slist = value_to_slist(args[1]); ^ ../src/node-curl.h:352:34: error: invalid types ‘const int[int]’ for array subscript return node_curl->setopt(args[0], slist); ^ ../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::setopt_httppost(const int&)’: ../src/node-curl.h:357:38: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ NodeCurl * node_curl = unwrap(args.This()); ^ ../src/node-curl.h:359:66: error: invalid types ‘const int[int]’ for array subscript v8::Handle<v8::Array> rows = v8::Handle<v8::Array>::Cast(args[0]); ^ ../src/node-curl.h:376:15: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ return args.This(); ^ ../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::raise(const char*, const char*)’: ../src/node-curl.h:407:10: error: ‘ThrowException’ is not a member of ‘v8’ return v8::ThrowException(v8::Exception::Error(v8::String::New(what))); ^ ../src/node-curl.h:407:50: error: ‘New’ is not a member of ‘v8::String’ return v8::ThrowException(v8::Exception::Error(v8::String::New(what))); ^ ../src/node-curl.h: In static member function ‘static void NodeCurl::export_curl_options(T, const char*, NodeCurl::CurlOption*, int)’: ../src/node-curl.h:413:57: error: no matching function for call to ‘v8::Object::New()’ v8::Handle<v8::Object> node_options = v8::Object::New(); ^ ../src/node-curl.h:413:57: note: candidate is: In file included from ../src/node-curl.h:4:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2933:24: note: static v8::Local<v8::Object> v8::Object::New(v8::Isolate*) static Local<Object> New(Isolate* isolate); ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2933:24: note: candidate expects 1 argument, 0 provided In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:418:5: error: ‘NewSymbol’ is not a member of ‘v8::String’ v8::String::NewSymbol(option.name), ^ ../src/node-curl.h:419:34: error: no matching function for call to ‘v8::Integer::New(const int&)’ v8::Integer::New(option.value) ^ ../src/node-curl.h:419:34: note: candidate is: In file included from ../src/node-curl.h:4:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2499:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t) static Local<Integer> New(Isolate* isolate, int32_t value); ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2499:25: note: candidate expects 2 arguments, 1 provided In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:422:10: error: ‘NewSymbol’ is not a member of ‘v8::String’ t->Set(v8::String::NewSymbol(group_name), node_options); ^ ../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::New(const int&)’: ../src/node-curl.h:428:21: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ new NodeCurl(args.This()); ^ ../src/node-curl.h:429:15: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ return args.This(); ^ ../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::process(const int&)’: ../src/node-curl.h:472:66: error: no matching function for call to ‘v8::Integer::New(int)’ return v8::Integer::New(transfered + (int)(running_handles > 0)); ^ ../src/node-curl.h:472:66: note: candidate is: In file included from ../src/node-curl.h:4:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2499:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t) static Local<Integer> New(Isolate* isolate, int32_t value); ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2499:25: note: candidate expects 2 arguments, 1 provided In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::perform(const int&)’: ../src/node-curl.h:478:32: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ NodeCurl *curl = unwrap(args.This()); ^ ../src/node-curl.h:493:15: error: request for member ‘This’ in ‘args’, which is of non-class type ‘const int’ return args.This(); ^ ../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::get_count(const int&)’: ../src/node-curl.h:498:32: error: no matching function for call to ‘v8::Integer::New(int&)’ return v8::Integer::New(count); ^ ../src/node-curl.h:498:32: note: candidate is: In file included from ../src/node-curl.h:4:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2499:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t) static Local<Integer> New(Isolate* isolate, int32_t value); ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2499:25: note: candidate expects 2 arguments, 1 provided In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::Initialize(v8::Handle<v8::Object>)’: ../src/node-curl.h:518:69: error: no matching function for call to ‘v8::FunctionTemplate::New(v8::Handle<v8::Value> (&)(const int&))’ v8::Handle<v8::FunctionTemplate> t = v8::FunctionTemplate::New(New); ^ ../src/node-curl.h:518:69: note: candidate is: In file included from ../src/node-curl.h:4:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:4349:34: note: static v8::Local<v8::FunctionTemplate> v8::FunctionTemplate::New(v8::Isolate*, v8::FunctionCallback, v8::Local<v8::Value>, v8::Local<v8::Signature>, int) static Local<FunctionTemplate> New( ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:4349:34: note: no known conversion for argument 1 from ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’ to ‘v8::Isolate*’ In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:522:58: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&) {aka v8::Local<v8::Value> (*)(const int&)}’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive] NODE_SET_PROTOTYPE_METHOD(t , "perform_" , perform); ^ In file included from ../src/node-curl.h:5:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error: initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate>, const char*, v8::FunctionCallback)’ [-fpermissive] inline void NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate> recv, ^ In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:523:61: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&) {aka v8::Local<v8::Value> (*)(const int&)}’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive] NODE_SET_PROTOTYPE_METHOD(t , "setopt_int_" , setopt_int); ^ In file included from ../src/node-curl.h:5:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error: initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate>, const char*, v8::FunctionCallback)’ [-fpermissive] inline void NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate> recv, ^ In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:524:61: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&) {aka v8::Local<v8::Value> (*)(const int&)}’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive] NODE_SET_PROTOTYPE_METHOD(t , "setopt_str_" , setopt_str); ^ In file included from ../src/node-curl.h:5:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error: initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate>, const char*, v8::FunctionCallback)’ [-fpermissive] inline void NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate> recv, ^ In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:525:63: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&) {aka v8::Local<v8::Value> (*)(const int&)}’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive] NODE_SET_PROTOTYPE_METHOD(t , "setopt_slist_" , setopt_slist); ^ In file included from ../src/node-curl.h:5:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error: initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate>, const char*, v8::FunctionCallback)’ [-fpermissive] inline void NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate> recv, ^ In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:526:69: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&) {aka v8::Local<v8::Value> (*)(const int&)}’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive] NODE_SET_PROTOTYPE_METHOD(t , "setopt_httppost_" , setopt_httppost); ^ In file included from ../src/node-curl.h:5:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error: initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate>, const char*, v8::FunctionCallback)’ [-fpermissive] inline void NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate> recv, ^ In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:528:64: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&) {aka v8::Local<v8::Value> (*)(const int&)}’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive] NODE_SET_PROTOTYPE_METHOD(t , "getinfo_int_" , getinfo_int); ^ In file included from ../src/node-curl.h:5:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error: initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate>, const char*, v8::FunctionCallback)’ [-fpermissive] inline void NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate> recv, ^ In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:529:64: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&) {aka v8::Local<v8::Value> (*)(const int&)}’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive] NODE_SET_PROTOTYPE_METHOD(t , "getinfo_str_" , getinfo_str); ^ In file included from ../src/node-curl.h:5:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error: initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate>, const char*, v8::FunctionCallback)’ [-fpermissive] inline void NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate> recv, ^ In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:530:67: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&) {aka v8::Local<v8::Value> (*)(const int&)}’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive] NODE_SET_PROTOTYPE_METHOD(t , "getinfo_double_" , getinfo_double); ^ In file included from ../src/node-curl.h:5:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error: initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate>, const char*, v8::FunctionCallback)’ [-fpermissive] inline void NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate> recv, ^ In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:531:66: error: invalid conversion from ‘v8::Handle<v8::Value> (*)(const int&) {aka v8::Local<v8::Value> (*)(const int&)}’ to ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ [-fpermissive] NODE_SET_PROTOTYPE_METHOD(t , "getinfo_slist_" , getinfo_slist); ^ In file included from ../src/node-curl.h:5:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:252:13: error: initializing argument 3 of ‘void node::NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate>, const char*, v8::FunctionCallback)’ [-fpermissive] inline void NODE_SET_PROTOTYPE_METHOD(v8::Local<v8::FunctionTemplate> recv, ^ In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:533:47: error: no matches converting function ‘close’ to type ‘v8::FunctionCallback {aka void (*)(const class v8::FunctionCallbackInfo<v8::Value>&)}’ NODE_SET_PROTOTYPE_METHOD(t, "close_", close); ^ ../src/node-curl.h:178:31: note: candidates are: static v8::Handle<v8::Value> NodeCurl::close(const int&) static v8::Handle<v8::Value> close(const v8::Arguments & args) ^ ../src/node-curl.h:171:7: note: void NodeCurl::close() void close() ^ ../src/node-curl.h:535:44: error: no matching function for call to ‘NODE_SET_METHOD(v8::Handle<v8::FunctionTemplate>&, const char [9], v8::Handle<v8::Value> (&)(const int&))’ NODE_SET_METHOD(t , "process_" , process); ^ ../src/node-curl.h:535:44: note: candidate is: In file included from ../src/node-curl.h:5:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:236:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback) inline void NODE_SET_METHOD(const TypeName& recv, ^ /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:236:13: note: template argument deduction/substitution failed: In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:535:44: note: cannot convert ‘NodeCurl::process’ (type ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’) to type ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ NODE_SET_METHOD(t , "process_" , process); ^ ../src/node-curl.h:536:46: error: no matching function for call to ‘NODE_SET_METHOD(v8::Handle<v8::FunctionTemplate>&, const char [10], v8::Handle<v8::Value> (&)(const int&))’ NODE_SET_METHOD(t , "get_count" , get_count); ^ ../src/node-curl.h:536:46: note: candidate is: In file included from ../src/node-curl.h:5:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:236:13: note: template<class TypeName> void node::NODE_SET_METHOD(const TypeName&, const char*, v8::FunctionCallback) inline void NODE_SET_METHOD(const TypeName& recv, ^ /home/ubuntu/.node-gyp/4.2.2/include/node/node.h:236:13: note: template argument deduction/substitution failed: In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:536:46: note: cannot convert ‘NodeCurl::get_count’ (type ‘v8::Handle<v8::Value>(const int&) {aka v8::Local<v8::Value>(const int&)}’) to type ‘v8::FunctionCallback {aka void (*)(const v8::FunctionCallbackInfo<v8::Value>&)}’ NODE_SET_METHOD(t , "get_count" , get_count); ^ In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h:594:15: error: ‘NewSymbol’ is not a member of ‘v8::String’ target->Set(v8::String::NewSymbol("Curl"), t->GetFunction()); ^ In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h: In instantiation of ‘static v8::Handle<v8::Value> NodeCurl::getinfo(const int&) [with CType = long int; JsClass = v8::Integer; v8::Handle<v8::Value> = v8::Local<v8::Value>]’: ../src/node-curl.h:280:41: required from here ../src/node-curl.h:275:38: error: no matching function for call to ‘v8::Integer::New(long int&)’ return result ? JsClass::New(result) : v8::Null(); ^ ../src/node-curl.h:275:38: note: candidate is: In file included from ../src/node-curl.h:4:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2499:25: note: static v8::Local<v8::Integer> v8::Integer::New(v8::Isolate*, int32_t) static Local<Integer> New(Isolate* isolate, int32_t value); ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2499:25: note: candidate expects 2 arguments, 1 provided In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h: In instantiation of ‘static v8::Handle<v8::Value> NodeCurl::getinfo(const int&) [with CType = char*; JsClass = v8::String; v8::Handle<v8::Value> = v8::Local<v8::Value>]’: ../src/node-curl.h:285:40: required from here ../src/node-curl.h:275:38: error: ‘New’ is not a member of ‘v8::String’ return result ? JsClass::New(result) : v8::Null(); ^ ../src/node-curl.h: In instantiation of ‘static v8::Handle<v8::Value> NodeCurl::getinfo(const int&) [with CType = double; JsClass = v8::Number; v8::Handle<v8::Value> = v8::Local<v8::Value>]’: ../src/node-curl.h:290:42: required from here ../src/node-curl.h:275:38: error: no matching function for call to ‘v8::Number::New(double&)’ ../src/node-curl.h:275:38: note: candidate is: In file included from ../src/node-curl.h:4:0, from ../src/node-curl.cc:1: /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2486:24: note: static v8::Local<v8::Number> v8::Number::New(v8::Isolate*, double) static Local<Number> New(Isolate* isolate, double value); ^ /home/ubuntu/.node-gyp/4.2.2/include/node/v8.h:2486:24: note: candidate expects 2 arguments, 1 provided In file included from ../src/node-curl.cc:1:0: ../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::getinfo(const int&) [with CType = double; JsClass = v8::Number; v8::Handle<v8::Value> = v8::Local<v8::Value>]’: ../src/node-curl.h:276:2: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::getinfo(const int&) [with CType = char*; JsClass = v8::String; v8::Handle<v8::Value> = v8::Local<v8::Value>]’: ../src/node-curl.h:276:2: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::getinfo(const int&) [with CType = long int; JsClass = v8::Integer; v8::Handle<v8::Value> = v8::Local<v8::Value>]’: ../src/node-curl.h:276:2: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::setopt_httppost(const int&)’: ../src/node-curl.h:377:2: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::setopt_slist(const int&)’: ../src/node-curl.h:353:2: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::setopt_str(const int&)’: ../src/node-curl.h:345:2: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::setopt_int(const int&)’: ../src/node-curl.h:333:2: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::perform(const int&)’: ../src/node-curl.h:494:2: warning: control reaches end of non-void function [-Wreturn-type] } ^ ../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::raise(const char*, const char*)’: ../src/node-curl.h:408:2: warning: control reaches end of non-void function [-Wreturn-type] } ^ make: *** [Release/obj.target/node-curl/src/node-curl.o] Error 1 make: Leaving directory/home/ubuntu/node12/node_modules/node-curl/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 3.13.0-48-generic
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/ubuntu/node12/node_modules/node-curl
gyp ERR! node -v v4.2.2
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
sh: 1: node-waf: not found
npm ERR! Linux 3.13.0-48-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "node-curl" "--save"
npm ERR! node v4.2.2
npm ERR! npm v2.14.7
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! [email protected] install: sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build)
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install script 'sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build)'.
npm ERR! This is most likely a problem with the node-curl package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build)
npm ERR! You can get their info via:
npm ERR! npm owner ls node-curl
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /home/ubuntu/node12/npm-debug.log

CURL Error codes

How can you get the error code from CURL when an error occurs. All I seem to be able to see is a free text error message like: "Couldn't resolve host name" which doesn't even match the libcurl error codes text for that particular error:

CURLE_COULDNT_RESOLVE_HOST (6)
Couldn't resolve host. The given remote host was not resolved.

How can I get the coded value or the matching text from the curl.on(error', function(e)
{}); method?

Incorrect documentation

The docs indicate that to get the body for a message, you should use this.body. However, that does not work.

There is an undocumented input to the callback function res. The res object contains body. Which direction is the library moving in?

build error with node-curl on aws

Hey,

im running into this problem on a aws instance

when ever it requires node-curl, i run into :
Error: Cannot find module '/home/ubuntu/node_modules/node-curl/lib/../build/default/node-curl'

running console.log on the error : Error: Module version mismatch. Expected 12, got 1.

there also appears a build error in "node_modules/node-curl/build"
to repeat the error, i ran sudo make:

CXX(target) Release/obj.target/node-curl/src/node-curl.o
In file included from ../src/node-curl.cc:1:0:
../src/node-curl.h: In constructor ‘NodeCurl::NodeCurl(v8::Handlev8::Object)’:
../src/node-curl.h:123:11: error: ‘class v8::Object’ has no member named ‘SetPointerInInternalField’
../src/node-curl.h:124:50: warning: ‘static v8::Persistent v8::Persistent::New(v8::Handle) [with T = v8::Object]’ is deprecated (declared at /home/ubuntu/.node-gyp/0.11.3/deps/v8/include/v8.h:5514) [-Wdeprecated-declarations]
../src/node-curl.h:125:35: error: invalid conversion from ‘void ()(v8::Persistentv8::Value, void)’ to ‘void ()(v8::Isolate, v8::Persistentv8::Object_, NodeCurl_)’ [-fpermissive]
/home/ubuntu/.node-gyp/0.11.3/deps/v8/include/v8.h:5593:6: error: initializing argument 2 of ‘void v8::Persistent::MakeWeak(P_, typename v8::WeakReferenceCallbacks<T, P>::Revivable) [with P = NodeCurl, T = v8::Object, typename v8::WeakReferenceCallbacks<T, P>::Revivable = void ()(v8::Isolate, v8::Persistentv8::Object_, NodeCurl_)]’ [-fpermissive]
../src/node-curl.h: In static member function ‘static void NodeCurl::destructor(v8::Persistentv8::Value, void_)’:
../src/node-curl.h:163:40: error: ‘class v8::Object’ has no member named ‘GetPointerFromInternalField’
../src/node-curl.h: In member function ‘void NodeCurl::close()’:
../src/node-curl.h:169:11: error: ‘class v8::Object’ has no member named ‘SetPointerInInternalField’
../src/node-curl.h: In static member function ‘static NodeCurl* NodeCurl::unwrap(v8::Handlev8::Object)’:
../src/node-curl.h:185:28: error: ‘class v8::Object’ has no member named ‘GetPointerFromInternalField’
../src/node-curl.h: In member function ‘size_t NodeCurl::on_write(char_, size_t)’:
../src/node-curl.h:198:117: warning: ‘static v8::Persistent v8::Persistent::New(v8::Handle) [with T = v8::String]’ is deprecated (declared at /home/ubuntu/.node-gyp/0.11.3/deps/v8/include/v8.h:5514) [-Wdeprecated-declarations]
../src/node-curl.h:202:17: error: expected primary-expression before ‘’ token
../src/node-curl.h:202:19: error: ‘buffer’ was not declared in this scope
../src/node-curl.h: In member function ‘void NodeCurl::on_end(CURLMsg
)’:
../src/node-curl.h:215:113: warning: ‘static v8::Persistent v8::Persistent::New(v8::Handle) [with T = v8::String]’ is deprecated (declared at /home/ubuntu/.node-gyp/0.11.3/deps/v8/include/v8.h:5514) [-Wdeprecated-declarations]
../src/node-curl.h: In member function ‘void NodeCurl::on_error(CURLMsg_)’:
../src/node-curl.h:226:117: warning: ‘static v8::Persistent v8::Persistent::New(v8::Handle) [with T = v8::String]’ is deprecated (declared at /home/ubuntu/.node-gyp/0.11.3/deps/v8/include/v8.h:5514) [-Wdeprecated-declarations]
../src/node-curl.h: In static member function ‘static NodeCurl* NodeCurl::unwrap(v8::Handlev8::Object)’:
../src/node-curl.h:186:2: warning: control reaches end of non-void function [-Wreturn-type]
make: *** [Release/obj.target/node-curl/src/node-curl.o] Error 1

able to help out?

Win7 install problem (possibly internet proxy unused)

I'm on Win7-64bit.
Being in a company environment the usage of a proxy is required for internet access.
I had set an evironment variable "http_proxy=http://..." and for example "git clone https://github.com/..." works without any problem.

C:\MyData>npm install node-libcurl
\

[email protected] install C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl
node tools/retrieve-win-deps && node tools/generate-stubs && node-gyp rebuild

Error: Command failed: C:\Windows\system32\cmd.exe /s /c "git init -q && git submodule add https://github.com/JCMais/curl-for-
Cloning into 'deps/curl-for-windows'...
fatal: unable to access 'https://github.com/JCMais/curl-for-windows.git/': Could not resolve host: github.com
Clone of 'https://github.com/JCMais/curl-for-windows.git' into submodule path 'deps/curl-for-windows' failed

npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\MyPrograms\iojs\node.exe" "C:\MyPrograms\iojs\node_modules\npm\bin\npm-cli.js" "install" "node-libc
npm ERR! node v2.3.3
npm ERR! npm v2.11.3
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node tools/retrieve-win-deps && node tools/generate-stubs && node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node tools/retrieve-win-deps && node tools/generate-stubs && node-gy
npm ERR! This is most likely a problem with the node-libcurl package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node tools/retrieve-win-deps && node tools/generate-stubs && node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls node-libcurl
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! C:\MyData\Workspace_431\Node_2\npm-debug.log

0 info it worked if it ends with ok
1 verbose cli [ 'C:\MyPrograms\iojs\node.exe',
1 verbose cli 'C:\MyPrograms\iojs\node_modules\npm\bin\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'node-libcurl' ]
2 info using [email protected]
3 info using [email protected]
4 verbose install initial load of C:\MyData\Workspace_431\Node_2\package.json
5 verbose readDependencies loading dependencies from C:\MyData\Workspace_431\Node_2\package.json
6 silly cache add args [ 'node-libcurl', null ]
7 verbose cache add spec node-libcurl
8 silly cache add parsed spec { raw: 'node-libcurl',
8 silly cache add scope: null,
8 silly cache add name: null,
8 silly cache add rawSpec: 'node-libcurl',
8 silly cache add spec: 'C:\MyData\Workspace_431\Node_2\node-libcurl',
8 silly cache add type: 'directory' }
9 verbose addLocalDirectory C:\Users\g3237\AppData\Roaming\npm-cache\node-libcurl\0.4.0\package.tgz not in flight; packing
10 verbose tar pack [ 'C:\Users\g3237\AppData\Roaming\npm-cache\node-libcurl\0.4.0\package.tgz',
10 verbose tar pack 'C:\MyData\Workspace_431\Node_2\node-libcurl' ]
11 verbose tarball C:\Users\g3237\AppData\Roaming\npm-cache\node-libcurl\0.4.0\package.tgz
12 verbose folder C:\MyData\Workspace_431\Node_2\node-libcurl
13 info prepublish [email protected]
14 verbose addLocalTarball adding from inside cache C:\Users\g3237\AppData\Roaming\npm-cache\node-libcurl\0.4.0\package.tgz
15 silly cache afterAdd [email protected]
16 verbose afterAdd C:\Users\g3237\AppData\Roaming\npm-cache\node-libcurl\0.4.0\package\package.json not in flight; writing
17 verbose afterAdd C:\Users\g3237\AppData\Roaming\npm-cache\node-libcurl\0.4.0\package\package.json written
18 silly install resolved [ { name: 'node-libcurl',
18 silly install resolved version: '0.4.0',
18 silly install resolved author: { name: 'Jonathan Cardoso', email: '[email protected]' },
18 silly install resolved description: 'Node bindings for libcurl. Based on the work from node-curl.',
18 silly install resolved keywords: [ 'node-curl', 'curl', 'libcurl', 'node-libcurl' ],
18 silly install resolved homepage: 'https://github.com/JCMais/node-libcurl',
18 silly install resolved repository: { type: 'git', url: 'git://github.com/JCMais/node-libcurl.git' },
18 silly install resolved main: './index.js',
18 silly install resolved scripts: { install: 'node tools/retrieve-win-deps && node tools/generate-stubs && node-gyp rebuild' },
18 silly install resolved dependencies: { bindings: '~1.2', debug: '^2.2', nan: '~1.8' },
18 silly install resolved devDependencies:
18 silly install resolved { 'body-parser': '^1.12',
18 silly install resolved 'cookie-parser': '^1.3',
18 silly install resolved express: '^4.12',
18 silly install resolved 'http-auth': '^2.2',
18 silly install resolved multiparty: '~3.2.6',
18 silly install resolved progress: '~1.1.8',
18 silly install resolved mocha: '^2.2',
18 silly install resolved should: '^6.0',
18 silly install resolved jsdoc: 'github:jsdoc3/jsdoc',
18 silly install resolved 'jaguarjs-jsdoc': 'github:davidshimjs/jaguarjs-jsdoc',
18 silly install resolved 'jsdoc-baseline': 'github:hegemonic/baseline' },
18 silly install resolved engines: { node: '>= 0.8.0' },
18 silly install resolved readme: '# node-libcurl\r\n\r\nNPM version\r\nDependencies\r\n\r\nLibcurl bindings for Node.js.\r\n_Based on the work from jiangmiao/node-curl._\r\n\r\n## Quick Start\r\n\r\n### Install\r\nnpm install node-libcurl\r\n\r\n### Simple Request\r\njavascript\r\nvar Curl = require( \'node-libcurl\' ).Curl;\r\n\r\nvar curl = new Curl();\r\n\r\ncurl.setOpt( \'URL\', \'www.google.com\' );\r\ncurl.setOpt( \'FOLLOWLOCATION\', true );\r\n\r\ncurl.on( \'end\', function( statusCode, body, headers ) {\r\n\r\n console.info( statusCode );\r\n console.info( \'---\' );\r\n console.info( body.length );\r\n console.info( \'---\' );\r\n console.info( this.getInfo( \'TOTAL_TIME\' ) );\r\n\r\n this.close();\r\n});\r\n\r\ncurl.on( \'error\', curl.close.bind( curl ) );\r\ncurl.perform();\r\n\r\n\r\n### MultiPart Upload / HttpPost libcurl Option\r\n\r\njavascript\r\nvar Curl = require( \'node-libcurl\' ).Curl;\r\n\r\nvar curl = new Curl(),\r\n close = curl.close.bind( curl );\r\n\r\ncurl.setOpt( curl.option.URL, \'127.0.0.1/upload.php\' );\r\ncurl.setOpt( curl.option.HTTPPOST, [\r\n { name: \'input-name\', file: \'/file/path\', type: \'text/html\' },\r\n { name: \'input-name2\', contents: \'field-contents\' }\r\n]);\r\n\r\ncurl.on( \'end\', close );\r\ncurl.on( \'error\', close );\r\n\r\n\r\nFor more examples check the examples folder.\r\n\r\n## API\r\n\r\n### Curl\r\n\r\n* events:\r\n * end - Called when the request is finished without errors\r\n * int statusCode Last received response code.\r\n * string|Buffer body If raw is set to true, a Buffer is passed instead of a string.\r\n * Array<Object>|Buffer headers Buffer if raw is true.\r\n * data - Called when a chunk of data was received.\r\n * Buffer chunk\r\n * header - Called when a chunk of headers was received.\r\n * Buffer header\r\n * error - Called when there was an error with the handler.\r\n * Error err\r\n * int errorCode libcurl error code.\r\n\r\n* methods:\r\n * getInfo - Get information from the handler\r\n * String|Int infoId Info id or the info name as string, you can use the constants from Curl.info\r\n * returns Array|String|Number Return value is based on the requested info.\r\n * setOpt - Set an option to the handler\r\n * String|Int optionId Option id or the option name as string, constants on Curl.option\r\n * Mixed optionValue Value is based on the given option, check libcurl documentation for more info.\r\n * enable - Enable a feature.\r\n * Int features Bitmask representing the features that should be enabled.\r\n * disable - Disable a feature.\r\n * Int features Bitmask representing the features that should be disabled.\r\n * perform - Process this handler.\r\n * reset - Reset the current curl handler.\r\n * close - Close the current curl instance, after calling this method, this handler is not usable anymore. You MUST call this on error and end events if you are not planning to use this handler anymore, it's NOT called by default.\r\n\r\n* members:\r\n * onData - Callback, acts the same way than the data event, however here the return value is taken into consideration.\r\n * Buffer chunk\r\n * onHeader - Callback, acts the same way than the header event, however here the return value is taken into consideration.\r\n * Buffer header\r\n\r\n* static methods:\r\n * getCount - Get amount of Curl instances active\r\n * returns int\r\n * getVersion - Get libcurl version as string\r\n * returns string\r\n\r\n* static members:\r\n * option - Object with all options available.\r\n * info - Object with all infos available.\r\n * protocol - Object with the protocols supported by libcurl as bitmasks, should be used when setting PROTOCOLS and REDIR_PROTOCOLS options.\r\n * auth - Object with bitmasks that should be used with the HTTPAUTH option.\r\n * http - Object with constants to be used with the HTTP_VERSION option.\r\n * pause - Object with constants to be used with the pause method.\r\n * netrc - Object with constants to be used with NETRC option.\r\n * feature - Object with the features currently supported as bitmasks.\r\n * NO_DATA_PARSING - Data received is passed as a Buffer to the end event.\r\n * NO_HEADER_PARSING - Header received is not parsed, it's passed as a Buffer to the end event.\r\n * NO_DATA_STORAGE - Data received is not stored inside this handler, implies NO_DATA_PARSING.\r\n * NO_HEADER_STORAGE - Header received is not stored inside this handler, implies NO_HEADER_PARSING.\r\n * RAW - Same than NO_DATA_PARSING | NO_HEADER_PARSING\r\n * NO_STORAGE - Same than NO_DATA_STORAGE | NO_HEADER_STORAGE, implies RAW.\r\n\r\n\r\n## Installing on Windows\r\n\r\n#### What you need to have installed:\r\n\r\n* Python 2.7\r\n* Visual Studio 2010/2012 (Express version works!)\r\n* Just that, really.\r\n',
18 silly install resolved readmeFilename: 'README.md',
18 silly install resolved gitHead: 'f57ca82cd34053b6cbb31df39a21a7b8346ecc56',
18 silly install resolved bugs: { url: 'https://github.com/JCMais/node-libcurl/issues' },
18 silly install resolved _id: '[email protected]',
18 silly install resolved _shasum: '02ecf3b174c04a3af9b74363bd21df333f480199',
18 silly install resolved _from: 'node-libcurl',
18 silly install resolved _resolved: 'file:node-libcurl' } ]
19 info install [email protected] into C:\MyData\Workspace_431\Node_2
20 info installOne [email protected]
21 verbose installOne of node-libcurl to C:\MyData\Workspace_431\Node_2 not in flight; installing
22 verbose lock using C:\Users\g3237\AppData\Roaming\npm-cache_locks\node-libcurl-f10ad47f2d7e9bce.lock for C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl
23 silly install write writing node-libcurl 0.4.0 to C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl
24 verbose unbuild node_modules\node-libcurl
25 silly gentlyRm C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl is being purged from base C:\MyData\Workspace_431\Node_2
26 verbose gentlyRm don't care about contents; nuking C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl
27 verbose tar unpack C:\Users\g3237\AppData\Roaming\npm-cache\node-libcurl\0.4.0\package.tgz
28 verbose tar unpacking to C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl
29 silly gentlyRm C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl is being purged
30 verbose gentlyRm don't care about contents; nuking C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl
31 silly gunzTarPerm modes [ '777', '666' ]
32 silly gunzTarPerm extractEntry package.json
33 silly gunzTarPerm extractEntry .npmignore
34 silly gunzTarPerm extractEntry README.md
35 silly gunzTarPerm extractEntry index.js
36 silly gunzTarPerm extractEntry .gitmodules
37 silly gunzTarPerm extractEntry binding.gyp
38 silly gunzTarPerm extractEntry examples/.npmignore
39 silly gunzTarPerm extractEntry examples/debug-callback.js
40 silly gunzTarPerm extractEntry examples/file-upload.js
41 silly gunzTarPerm extractEntry examples/get-info.js
42 silly gunzTarPerm extractEntry examples/cookies.js
43 silly gunzTarPerm extractEntry examples/progress-callback.js
44 silly gunzTarPerm extractEntry examples/simple-request.js
45 silly gunzTarPerm extractEntry examples/ssl.js
46 silly gunzTarPerm extractEntry examples/stress-test.js
47 silly gunzTarPerm extractEntry examples/test-top-500.js
48 silly gunzTarPerm extractEntry examples/connection-timeout.js
49 silly gunzTarPerm extractEntry examples/top-sites.js
50 silly gunzTarPerm extractEntry examples/post-data.js
51 silly gunzTarPerm extractEntry .travis.yml
52 silly gunzTarPerm extractEntry jsdoc-tmpl.config.json
53 silly gunzTarPerm extractEntry jsdoc.json
54 silly gunzTarPerm extractEntry lib/Curl.js
55 silly gunzTarPerm extractEntry lib/generated-stubs/.npmignore
56 silly gunzTarPerm extractEntry LICENSE-MIT
57 silly gunzTarPerm extractEntry src/macros.h
58 silly gunzTarPerm extractEntry src/Curl.cc
59 silly gunzTarPerm extractEntry src/CurlHttpPost.cc
60 silly gunzTarPerm extractEntry src/CurlHttpPost.h
61 silly gunzTarPerm extractEntry src/generated-stubs/.npmignore
62 silly gunzTarPerm extractEntry src/Curl.h
63 silly gunzTarPerm extractEntry src/node-libcurl.cc
64 silly gunzTarPerm extractEntry src/string_format.cc
65 silly gunzTarPerm extractEntry src/string_format.h
66 silly gunzTarPerm extractEntry src/strndup.cc
67 silly gunzTarPerm extractEntry src/strndup.h
68 silly gunzTarPerm extractEntry test/main.js
69 silly gunzTarPerm extractEntry test/curl/binary-data.js
70 silly gunzTarPerm extractEntry test/curl/connection-timeout.js
71 silly gunzTarPerm extractEntry test/curl/events.js
72 silly gunzTarPerm extractEntry test/curl/feature.js
73 silly gunzTarPerm extractEntry test/curl/getinfo.js
74 silly gunzTarPerm extractEntry test/curl/httpauth.js
75 silly gunzTarPerm extractEntry test/curl/httppost.js
76 silly gunzTarPerm extractEntry test/curl/postfields.js
77 silly gunzTarPerm extractEntry test/curl/reset.js
78 silly gunzTarPerm extractEntry test/curl/setopt.js
79 silly gunzTarPerm extractEntry test/helper/server.js
80 silly gunzTarPerm extractEntry tools/curl-config.js
81 silly gunzTarPerm extractEntry tools/generate-stubs.js
82 silly gunzTarPerm extractEntry tools/retrieve-win-deps.js
83 silly gunzTarPerm extractEntry tools/update-deps.js
84 verbose write writing to C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\package.json
85 info preinstall [email protected]
86 verbose readDependencies loading dependencies from C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\package.json
87 silly prepareForInstallMany adding bindings@~1.2 from node-libcurl dependencies
88 silly prepareForInstallMany adding debug@^2.2 from node-libcurl dependencies
89 silly prepareForInstallMany adding nan@~1.8 from node-libcurl dependencies
90 verbose readDependencies loading dependencies from C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\package.json
91 silly cache add args [ 'bindings@~1.2', null ]
92 verbose cache add spec bindings@~1.2
93 silly cache add args [ 'debug@^2.2', null ]
94 verbose cache add spec debug@^2.2
95 silly cache add parsed spec { raw: 'bindings@~1.2',
95 silly cache add scope: null,
95 silly cache add name: 'bindings',
95 silly cache add rawSpec: '~1.2',
95 silly cache add spec: '>=1.2.0 <1.3.0',
95 silly cache add type: 'range' }
96 silly addNamed bindings@>=1.2.0 <1.3.0
97 verbose addNamed ">=1.2.0 <1.3.0" is a valid semver range for bindings
98 silly addNameRange { name: 'bindings', range: '>=1.2.0 <1.3.0', hasData: false }
99 silly mapToRegistry name bindings
100 silly mapToRegistry using default registry
101 silly mapToRegistry registry https://registry.npmjs.org/
102 silly mapToRegistry uri https://registry.npmjs.org/bindings
103 verbose addNameRange registry:https://registry.npmjs.org/bindings not in flight; fetching
104 silly cache add parsed spec { raw: 'debug@^2.2',
104 silly cache add scope: null,
104 silly cache add name: 'debug',
104 silly cache add rawSpec: '^2.2',
104 silly cache add spec: '>=2.2.0 <3.0.0',
104 silly cache add type: 'range' }
105 silly addNamed debug@>=2.2.0 <3.0.0
106 verbose addNamed ">=2.2.0 <3.0.0" is a valid semver range for debug
107 silly addNameRange { name: 'debug', range: '>=2.2.0 <3.0.0', hasData: false }
108 silly mapToRegistry name debug
109 silly mapToRegistry using default registry
110 silly mapToRegistry registry https://registry.npmjs.org/
111 silly mapToRegistry uri https://registry.npmjs.org/debug
112 verbose addNameRange registry:https://registry.npmjs.org/debug not in flight; fetching
113 silly cache add args [ 'nan@~1.8', null ]
114 verbose cache add spec nan@~1.8
115 silly cache add parsed spec { raw: 'nan@~1.8',
115 silly cache add scope: null,
115 silly cache add name: 'nan',
115 silly cache add rawSpec: '~1.8',
115 silly cache add spec: '>=1.8.0 <1.9.0',
115 silly cache add type: 'range' }
116 silly addNamed nan@>=1.8.0 <1.9.0
117 verbose addNamed ">=1.8.0 <1.9.0" is a valid semver range for nan
118 silly addNameRange { name: 'nan', range: '>=1.8.0 <1.9.0', hasData: false }
119 silly mapToRegistry name nan
120 silly mapToRegistry using default registry
121 silly mapToRegistry registry https://registry.npmjs.org/
122 silly mapToRegistry uri https://registry.npmjs.org/nan
123 verbose addNameRange registry:https://registry.npmjs.org/nan not in flight; fetching
124 verbose request uri https://registry.npmjs.org/bindings
125 verbose request no auth needed
126 info attempt registry request try #1 at 08:22:36
127 verbose request id 47c5f89546150957
128 verbose etag "BCS5XYG9ISNJFNKEL5FLOI5HX"
129 http request GET https://registry.npmjs.org/bindings
130 verbose request uri https://registry.npmjs.org/nan
131 verbose request no auth needed
132 info attempt registry request try #1 at 08:22:36
133 verbose etag "CWMZR9BQ6YD6KL99MGG0CU5U5"
134 http request GET https://registry.npmjs.org/nan
135 verbose request uri https://registry.npmjs.org/debug
136 verbose request no auth needed
137 info attempt registry request try #1 at 08:22:36
138 verbose etag "81OSLK7EJMMIA2FPVBDRX54Q2"
139 http request GET https://registry.npmjs.org/debug
140 http 304 https://registry.npmjs.org/nan
141 silly get cb [ 304,
141 silly get { date: 'Mon, 13 Jul 2015 06:22:36 GMT',
141 silly get via: '1.1 varnish',
141 silly get 'cache-control': 'max-age=60',
141 silly get etag: '"CWMZR9BQ6YD6KL99MGG0CU5U5"',
141 silly get age: '10',
141 silly get connection: 'close',
141 silly get 'x-served-by': 'cache-fra1246-FRA',
141 silly get 'x-cache': 'HIT',
141 silly get 'x-cache-hits': '1',
141 silly get 'x-timer': 'S1436768556.414444,VS0,VE0',
141 silly get vary: 'Accept' } ]
142 verbose etag https://registry.npmjs.org/nan from cache
143 verbose get saving nan to C:\Users\g3237\AppData\Roaming\npm-cache\registry.npmjs.org\nan.cache.json
144 http 304 https://registry.npmjs.org/bindings
145 silly get cb [ 304,
145 silly get { date: 'Mon, 13 Jul 2015 06:22:36 GMT',
145 silly get via: '1.1 varnish',
145 silly get 'cache-control': 'max-age=60',
145 silly get etag: '"BCS5XYG9ISNJFNKEL5FLOI5HX"',
145 silly get age: '12',
145 silly get connection: 'close',
145 silly get 'x-served-by': 'cache-fra1248-FRA',
145 silly get 'x-cache': 'HIT',
145 silly get 'x-cache-hits': '1',
145 silly get 'x-timer': 'S1436768556.415826,VS0,VE0',
145 silly get vary: 'Accept' } ]
146 verbose etag https://registry.npmjs.org/bindings from cache
147 verbose get saving bindings to C:\Users\g3237\AppData\Roaming\npm-cache\registry.npmjs.org\bindings.cache.json
148 silly addNameRange number 2 { name: 'bindings', range: '>=1.2.0 <1.3.0', hasData: true }
149 silly addNameRange versions [ 'bindings',
149 silly addNameRange [ '0.0.1',
149 silly addNameRange '0.1.0',
149 silly addNameRange '0.1.1',
149 silly addNameRange '0.2.0',
149 silly addNameRange '0.2.1',
149 silly addNameRange '0.2.2',
149 silly addNameRange '0.2.3',
149 silly addNameRange '0.2.4',
149 silly addNameRange '0.3.0',
149 silly addNameRange '0.4.0',
149 silly addNameRange '1.0.0',
149 silly addNameRange '1.1.0',
149 silly addNameRange '1.1.1',
149 silly addNameRange '1.2.0',
149 silly addNameRange '1.2.1' ] ]
150 silly addNamed [email protected]
151 verbose addNamed "1.2.1" is a plain semver version for bindings
152 silly addNameRange number 2 { name: 'nan', range: '>=1.8.0 <1.9.0', hasData: true }
153 silly addNameRange versions [ 'nan',
153 silly addNameRange [ '0.3.0-wip',
153 silly addNameRange '0.3.0-wip2',
153 silly addNameRange '0.3.0',
153 silly addNameRange '0.3.1',
153 silly addNameRange '0.3.2',
153 silly addNameRange '0.4.0',
153 silly addNameRange '0.4.1',
153 silly addNameRange '0.4.2',
153 silly addNameRange '0.4.3',
153 silly addNameRange '0.4.4',
153 silly addNameRange '0.5.0',
153 silly addNameRange '0.5.1',
153 silly addNameRange '0.5.2',
153 silly addNameRange '0.6.0',
153 silly addNameRange '0.7.0',
153 silly addNameRange '0.7.1',
153 silly addNameRange '0.8.0',
153 silly addNameRange '1.0.0',
153 silly addNameRange '1.1.0',
153 silly addNameRange '1.1.1',
153 silly addNameRange '1.1.2',
153 silly addNameRange '1.2.0',
153 silly addNameRange '1.3.0',
153 silly addNameRange '1.4.0',
153 silly addNameRange '1.4.1',
153 silly addNameRange '1.5.0',
153 silly addNameRange '1.4.2',
153 silly addNameRange '1.4.3',
153 silly addNameRange '1.5.1',
153 silly addNameRange '1.5.2',
153 silly addNameRange '1.6.0',
153 silly addNameRange '1.5.3',
153 silly addNameRange '1.6.1',
153 silly addNameRange '1.6.2',
153 silly addNameRange '1.7.0',
153 silly addNameRange '1.8.0',
153 silly addNameRange '1.8.1',
153 silly addNameRange '1.8.2',
153 silly addNameRange '1.8.3',
153 silly addNameRange '1.8.4' ] ]
154 silly addNamed [email protected]
155 verbose addNamed "1.8.4" is a plain semver version for nan
156 http 200 https://registry.npmjs.org/debug
157 silly get cb [ 200,
157 silly get { server: 'CouchDB/1.5.0 (Erlang OTP/R16B03)',
157 silly get etag: '"EC9ATO87XEE7TXAYVXTGER1P"',
157 silly get 'content-type': 'application/json',
157 silly get 'cache-control': 'max-age=60',
157 silly get 'content-length': '34908',
157 silly get 'accept-ranges': 'bytes',
157 silly get date: 'Mon, 13 Jul 2015 06:22:36 GMT',
157 silly get via: '1.1 varnish',
157 silly get age: '56',
157 silly get connection: 'close',
157 silly get 'x-served-by': 'cache-fra1239-FRA',
157 silly get 'x-cache': 'HIT',
157 silly get 'x-cache-hits': '4',
157 silly get 'x-timer': 'S1436768556.416474,VS0,VE0',
157 silly get vary: 'Accept' } ]
158 verbose get saving debug to C:\Users\g3237\AppData\Roaming\npm-cache\registry.npmjs.org\debug.cache.json
159 silly cache afterAdd [email protected]
160 verbose afterAdd C:\Users\g3237\AppData\Roaming\npm-cache\bindings\1.2.1\package\package.json not in flight; writing
161 silly cache afterAdd [email protected]
162 verbose afterAdd C:\Users\g3237\AppData\Roaming\npm-cache\nan\1.8.4\package\package.json not in flight; writing
163 silly addNameRange number 2 { name: 'debug', range: '>=2.2.0 <3.0.0', hasData: true }
164 silly addNameRange versions [ 'debug',
164 silly addNameRange [ '0.0.1',
164 silly addNameRange '0.1.0',
164 silly addNameRange '0.2.0',
164 silly addNameRange '0.3.0',
164 silly addNameRange '0.4.0',
164 silly addNameRange '0.4.1',
164 silly addNameRange '0.5.0',
164 silly addNameRange '0.6.0',
164 silly addNameRange '0.7.0',
164 silly addNameRange '0.7.1',
164 silly addNameRange '0.7.2',
164 silly addNameRange '0.7.3',
164 silly addNameRange '0.7.4',
164 silly addNameRange '0.8.0',
164 silly addNameRange '0.8.1',
164 silly addNameRange '1.0.0',
164 silly addNameRange '1.0.1',
164 silly addNameRange '1.0.2',
164 silly addNameRange '1.0.3',
164 silly addNameRange '1.0.4',
164 silly addNameRange '2.0.0',
164 silly addNameRange '2.1.0',
164 silly addNameRange '2.1.1',
164 silly addNameRange '2.1.2',
164 silly addNameRange '2.1.3',
164 silly addNameRange '2.2.0' ] ]
165 silly addNamed [email protected]
166 verbose addNamed "2.2.0" is a plain semver version for debug
167 verbose afterAdd C:\Users\g3237\AppData\Roaming\npm-cache\bindings\1.2.1\package\package.json written
168 verbose afterAdd C:\Users\g3237\AppData\Roaming\npm-cache\nan\1.8.4\package\package.json written
169 silly cache afterAdd [email protected]
170 verbose afterAdd C:\Users\g3237\AppData\Roaming\npm-cache\debug\2.2.0\package\package.json not in flight; writing
171 verbose afterAdd C:\Users\g3237\AppData\Roaming\npm-cache\debug\2.2.0\package\package.json written
172 silly install resolved [ { name: 'bindings',
172 silly install resolved description: 'Helper module for loading your native module's .node file',
172 silly install resolved keywords: [ 'native', 'addon', 'bindings', 'gyp', 'waf', 'c', 'c++' ],
172 silly install resolved version: '1.2.1',
172 silly install resolved author:
172 silly install resolved { name: 'Nathan Rajlich',
172 silly install resolved email: '[email protected]',
172 silly install resolved url: 'http://tootallnate.net' },
172 silly install resolved repository:
172 silly install resolved { type: 'git',
172 silly install resolved url: 'git://github.com/TooTallNate/node-bindings.git' },
172 silly install resolved main: './bindings.js',
172 silly install resolved bugs: { url: 'https://github.com/TooTallNate/node-bindings/issues' },
172 silly install resolved homepage: 'https://github.com/TooTallNate/node-bindings',
172 silly install resolved license: 'MIT',
172 silly install resolved gitHead: 'e404152ee27f8478ccbc7122ee051246e8e5ec02',
172 silly install resolved _id: '[email protected]',
172 silly install resolved scripts: {},
172 silly install resolved _shasum: '14ad6113812d2d37d72e67b4cacb4bb726505f11',
172 silly install resolved _from: 'bindings@>=1.2.0 <1.3.0',
172 silly install resolved _npmVersion: '1.4.14',
172 silly install resolved _npmUser: { name: 'tootallnate', email: '[email protected]' },
172 silly install resolved maintainers: [ [Object], [Object] ],
172 silly install resolved dist:
172 silly install resolved { shasum: '14ad6113812d2d37d72e67b4cacb4bb726505f11',
172 silly install resolved tarball: 'http://registry.npmjs.org/bindings/-/bindings-1.2.1.tgz' },
172 silly install resolved directories: {},
172 silly install resolved resolved: 'https://registry.npmjs.org/bindings/-/bindings-1.2.1.tgz',
172 silly install resolved readme: 'ERROR: No README data found!' },
172 silly install resolved { name: 'nan',
172 silly install resolved version: '1.8.4',
172 silly install resolved description: 'Native Abstractions for Node.js: C++ header for Node 0.8->0.12 compatibility',
172 silly install resolved main: 'include_dirs.js',
172 silly install resolved repository: { type: 'git', url: 'git://github.com/iojs/nan.git' },
172 silly install resolved scripts:
172 silly install resolved { test: 'tap --gc test/js/
-test.js',
172 silly install resolved 'rebuild-tests': 'pangyp rebuild --directory test' },
172 silly install resolved contributors:
172 silly install resolved [ [Object],
172 silly install resolved [Object],
172 silly install resolved [Object],
172 silly install resolved [Object],
172 silly install resolved [Object],
172 silly install resolved [Object],
172 silly install resolved [Object] ],
172 silly install resolved devDependencies:
172 silly install resolved { bindings: '~1.2.1',
172 silly install resolved 'node-gyp': '~1.0.2',
172 silly install resolved pangyp: '~2.0.1',
172 silly install resolved tap: '~0.7.1',
172 silly install resolved xtend: '~4.0.0' },
172 silly install resolved license: 'MIT',
172 silly install resolved gitHead: 'ed3bbf4ced0cf7937b4e4164766797f71aa97f3d',
172 silly install resolved bugs: { url: 'https://github.com/iojs/nan/issues' },
172 silly install resolved homepage: 'https://github.com/iojs/nan#readme',
172 silly install resolved _id: '[email protected]',
172 silly install resolved _shasum: '3c76b5382eab33e44b758d2813ca9d92e9342f34',
172 silly install resolved _from: 'nan@>=1.8.0 <1.9.0',
172 silly install resolved _npmVersion: '2.8.3',
172 silly install resolved _nodeVersion: '0.12.2',
172 silly install resolved _npmUser: { name: 'kkoopa', email: '[email protected]' },
172 silly install resolved maintainers: [ [Object], [Object] ],
172 silly install resolved dist:
172 silly install resolved { shasum: '3c76b5382eab33e44b758d2813ca9d92e9342f34',
172 silly install resolved tarball: 'http://registry.npmjs.org/nan/-/nan-1.8.4.tgz' },
172 silly install resolved directories: {},
172 silly install resolved resolved: 'https://registry.npmjs.org/nan/-/nan-1.8.4.tgz',
172 silly install resolved readme: 'ERROR: No README data found!' },
172 silly install resolved { name: 'debug',
172 silly install resolved version: '2.2.0',
172 silly install resolved repository: { type: 'git', url: 'git://github.com/visionmedia/debug.git' },
172 silly install resolved description: 'small debugging utility',
172 silly install resolved keywords: [ 'debug', 'log', 'debugger' ],
172 silly install resolved author: { name: 'TJ Holowaychuk', email: '[email protected]' },
172 silly install resolved contributors: [ [Object] ],
172 silly install resolved license: 'MIT',
172 silly install resolved dependencies: { ms: '0.7.1' },
172 silly install resolved devDependencies: { browserify: '9.0.3', mocha: '
' },
172 silly install resolved main: './node.js',
172 silly install resolved browser: './browser.js',
172 silly install resolved component: { scripts: [Object] },
172 silly install resolved gitHead: 'b38458422b5aa8aa6d286b10dfe427e8a67e2b35',
172 silly install resolved bugs: { url: 'https://github.com/visionmedia/debug/issues' },
172 silly install resolved homepage: 'https://github.com/visionmedia/debug',
172 silly install resolved _id: '[email protected]',
172 silly install resolved scripts: {},
172 silly install resolved _shasum: 'f87057e995b1a1f6ae6a4960664137bc56f039da',
172 silly install resolved _from: 'debug@>=2.2.0 <3.0.0',
172 silly install resolved _npmVersion: '2.7.4',
172 silly install resolved _nodeVersion: '0.12.2',
172 silly install resolved _npmUser: { name: 'tootallnate', email: '[email protected]' },
172 silly install resolved maintainers: [ [Object], [Object] ],
172 silly install resolved dist:
172 silly install resolved { shasum: 'f87057e995b1a1f6ae6a4960664137bc56f039da',
172 silly install resolved tarball: 'http://registry.npmjs.org/debug/-/debug-2.2.0.tgz' },
172 silly install resolved directories: {},
172 silly install resolved _resolved: 'https://registry.npmjs.org/debug/-/debug-2.2.0.tgz',
172 silly install resolved readme: 'ERROR: No README data found!' } ]
173 info install [email protected] into C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl
174 info install [email protected] into C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl
175 info install [email protected] into C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl
176 info installOne [email protected]
177 verbose installOne of bindings to C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl not in flight; installing
178 info installOne [email protected]
179 verbose installOne of nan to C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl not in flight; installing
180 info installOne [email protected]
181 verbose installOne of debug to C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl not in flight; installing
182 verbose lock using C:\Users\g3237\AppData\Roaming\npm-cache_locks\nan-34d72e851061d48c.lock for C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\nan
183 verbose lock using C:\Users\g3237\AppData\Roaming\npm-cache_locks\debug-223dd6832f843145.lock for C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug
184 silly install write writing nan 1.8.4 to C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\nan
185 silly install write writing debug 2.2.0 to C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug
186 verbose lock using C:\Users\g3237\AppData\Roaming\npm-cache_locks\bindings-d33658be4bbfa02e.lock for C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\bindings
187 silly install write writing bindings 1.2.1 to C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\bindings
188 verbose unbuild node_modules\node-libcurl\node_modules\nan
189 verbose unbuild node_modules\node-libcurl\node_modules\debug
190 silly gentlyRm C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\nan is being purged from base C:\MyData\Workspace_431\Node_2
191 verbose gentlyRm don't care about contents; nuking C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\nan
192 silly gentlyRm C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug is being purged from base C:\MyData\Workspace_431\Node_2
193 verbose gentlyRm don't care about contents; nuking C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug
194 verbose unbuild node_modules\node-libcurl\node_modules\bindings
195 verbose tar unpack C:\Users\g3237\AppData\Roaming\npm-cache\nan\1.8.4\package.tgz
196 verbose tar unpacking to C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\nan
197 silly gentlyRm C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\nan is being purged
198 verbose gentlyRm don't care about contents; nuking C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\nan
199 verbose tar unpack C:\Users\g3237\AppData\Roaming\npm-cache\debug\2.2.0\package.tgz
200 verbose tar unpacking to C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug
201 silly gentlyRm C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug is being purged
202 verbose gentlyRm don't care about contents; nuking C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug
203 silly gunzTarPerm modes [ '777', '666' ]
204 silly gunzTarPerm modes [ '777', '666' ]
205 silly gentlyRm C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\bindings is being purged from base C:\MyData\Workspace_431\Node_2
206 verbose gentlyRm don't care about contents; nuking C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\bindings
207 verbose tar unpack C:\Users\g3237\AppData\Roaming\npm-cache\bindings\1.2.1\package.tgz
208 verbose tar unpacking to C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\bindings
209 silly gentlyRm C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\bindings is being purged
210 verbose gentlyRm don't care about contents; nuking C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\bindings
211 silly gunzTarPerm modes [ '777', '666' ]
212 silly gunzTarPerm extractEntry package.json
213 silly gunzTarPerm modified mode [ 'package.json', 436, 438 ]
214 silly gunzTarPerm extractEntry package.json
215 silly gunzTarPerm modified mode [ 'package.json', 420, 438 ]
216 silly gunzTarPerm extractEntry package.json
217 silly gunzTarPerm modified mode [ 'package.json', 420, 438 ]
218 silly gunzTarPerm extractEntry README.md
219 silly gunzTarPerm modified mode [ 'README.md', 436, 438 ]
220 silly gunzTarPerm extractEntry include_dirs.js
221 silly gunzTarPerm modified mode [ 'include_dirs.js', 436, 438 ]
222 silly gunzTarPerm extractEntry LICENSE.md
223 silly gunzTarPerm modified mode [ 'LICENSE.md', 436, 438 ]
224 silly gunzTarPerm extractEntry .dntrc
225 silly gunzTarPerm modified mode [ '.dntrc', 436, 438 ]
226 silly gunzTarPerm extractEntry appveyor.yml
227 silly gunzTarPerm modified mode [ 'appveyor.yml', 436, 438 ]
228 silly gunzTarPerm extractEntry nan.h
229 silly gunzTarPerm modified mode [ 'nan.h', 436, 438 ]
230 silly gunzTarPerm extractEntry nan_implementation_12_inl.h
231 silly gunzTarPerm modified mode [ 'nan_implementation_12_inl.h', 436, 438 ]
232 silly gunzTarPerm extractEntry nan_implementation_pre_12_inl.h
233 silly gunzTarPerm modified mode [ 'nan_implementation_pre_12_inl.h', 436, 438 ]
234 silly gunzTarPerm extractEntry nan_new.h
235 silly gunzTarPerm modified mode [ 'nan_new.h', 436, 438 ]
236 silly gunzTarPerm extractEntry nan_string_bytes.h
237 silly gunzTarPerm modified mode [ 'nan_string_bytes.h', 436, 438 ]
238 silly gunzTarPerm extractEntry CHANGELOG.md
239 silly gunzTarPerm modified mode [ 'CHANGELOG.md', 436, 438 ]
240 silly gunzTarPerm extractEntry .npmignore
241 silly gunzTarPerm modified mode [ '.npmignore', 420, 438 ]
242 silly gunzTarPerm extractEntry node.js
243 silly gunzTarPerm modified mode [ 'node.js', 420, 438 ]
244 silly gunzTarPerm extractEntry README.md
245 silly gunzTarPerm modified mode [ 'README.md', 420, 438 ]
246 silly gunzTarPerm extractEntry bindings.js
247 silly gunzTarPerm modified mode [ 'bindings.js', 420, 438 ]
248 silly gunzTarPerm extractEntry debug.js
249 silly gunzTarPerm modified mode [ 'debug.js', 420, 438 ]
250 silly gunzTarPerm extractEntry browser.js
251 silly gunzTarPerm modified mode [ 'browser.js', 420, 438 ]
252 silly gunzTarPerm extractEntry Readme.md
253 silly gunzTarPerm modified mode [ 'Readme.md', 420, 438 ]
254 silly gunzTarPerm extractEntry bower.json
255 silly gunzTarPerm modified mode [ 'bower.json', 420, 438 ]
256 silly gunzTarPerm extractEntry .jshintrc
257 silly gunzTarPerm modified mode [ '.jshintrc', 420, 438 ]
258 verbose write writing to C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\bindings\package.json
259 info preinstall [email protected]
260 verbose readDependencies loading dependencies from C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\bindings\package.json
261 silly gunzTarPerm extractEntry component.json
262 silly gunzTarPerm modified mode [ 'component.json', 420, 438 ]
263 silly gunzTarPerm extractEntry Makefile
264 silly gunzTarPerm modified mode [ 'Makefile', 420, 438 ]
265 verbose readDependencies loading dependencies from C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\bindings\package.json
266 silly install resolved []
267 verbose about to build C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\bindings
268 info build C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\bindings
269 info linkStuff [email protected]
270 silly linkStuff [email protected] has C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules as its parent node_modules
271 verbose linkBins [email protected]
272 verbose linkMans [email protected]
273 verbose rebuildBundles [email protected]
274 info install [email protected]
275 silly gunzTarPerm extractEntry History.md
276 silly gunzTarPerm modified mode [ 'History.md', 420, 438 ]
277 info postinstall [email protected]
278 verbose unlock done using C:\Users\g3237\AppData\Roaming\npm-cache_locks\bindings-d33658be4bbfa02e.lock for C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\bindings
279 verbose write writing to C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug\package.json
280 info preinstall [email protected]
281 verbose readDependencies loading dependencies from C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug\package.json
282 silly prepareForInstallMany adding [email protected] from debug dependencies
283 verbose readDependencies loading dependencies from C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug\package.json
284 silly cache add args [ '[email protected]', null ]
285 verbose cache add spec [email protected]
286 silly cache add parsed spec { raw: '[email protected]',
286 silly cache add scope: null,
286 silly cache add name: 'ms',
286 silly cache add rawSpec: '0.7.1',
286 silly cache add spec: '0.7.1',
286 silly cache add type: 'version' }
287 silly addNamed [email protected]
288 verbose addNamed "0.7.1" is a plain semver version for ms
289 silly mapToRegistry name ms
290 silly mapToRegistry using default registry
291 silly mapToRegistry registry https://registry.npmjs.org/
292 silly mapToRegistry uri https://registry.npmjs.org/ms
293 verbose addNameVersion registry:https://registry.npmjs.org/ms not in flight; fetching
294 verbose request uri https://registry.npmjs.org/ms
295 verbose request no auth needed
296 info attempt registry request try #1 at 08:22:36
297 verbose etag "53ANWMC7TJMGDP9CKLFDTWNRR"
298 http request GET https://registry.npmjs.org/ms
299 verbose write writing to C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\nan\package.json
300 info preinstall [email protected]
301 verbose readDependencies loading dependencies from C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\nan\package.json
302 verbose readDependencies loading dependencies from C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\nan\package.json
303 silly install resolved []
304 verbose about to build C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\nan
305 info build C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\nan
306 info linkStuff [email protected]
307 silly linkStuff [email protected] has C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules as its parent node_modules
308 verbose linkBins [email protected]
309 verbose linkMans [email protected]
310 verbose rebuildBundles [email protected]
311 info install [email protected]
312 info postinstall [email protected]
313 verbose unlock done using C:\Users\g3237\AppData\Roaming\npm-cache_locks\nan-34d72e851061d48c.lock for C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\nan
314 http 304 https://registry.npmjs.org/ms
315 silly get cb [ 304,
315 silly get { date: 'Mon, 13 Jul 2015 06:22:36 GMT',
315 silly get via: '1.1 varnish',
315 silly get 'cache-control': 'max-age=60',
315 silly get etag: '"53ANWMC7TJMGDP9CKLFDTWNRR"',
315 silly get age: '52',
315 silly get connection: 'close',
315 silly get 'x-served-by': 'cache-fra1232-FRA',
315 silly get 'x-cache': 'HIT',
315 silly get 'x-cache-hits': '1',
315 silly get 'x-timer': 'S1436768556.650626,VS0,VE2',
315 silly get vary: 'Accept' } ]
316 verbose etag https://registry.npmjs.org/ms from cache
317 verbose get saving ms to C:\Users\g3237\AppData\Roaming\npm-cache\registry.npmjs.org\ms.cache.json
318 silly cache afterAdd [email protected]
319 verbose afterAdd C:\Users\g3237\AppData\Roaming\npm-cache\ms\0.7.1\package\package.json not in flight; writing
320 verbose afterAdd C:\Users\g3237\AppData\Roaming\npm-cache\ms\0.7.1\package\package.json written
321 silly install resolved [ { name: 'ms',
321 silly install resolved version: '0.7.1',
321 silly install resolved description: 'Tiny ms conversion utility',
321 silly install resolved repository: { type: 'git', url: 'git://github.com/guille/ms.js.git' },
321 silly install resolved main: './index',
321 silly install resolved devDependencies: { mocha: '', 'expect.js': '', serve: '*' },
321 silly install resolved component: { scripts: [Object] },
321 silly install resolved gitHead: '713dcf26d9e6fd9dbc95affe7eff9783b7f1b909',
321 silly install resolved bugs: { url: 'https://github.com/guille/ms.js/issues' },
321 silly install resolved homepage: 'https://github.com/guille/ms.js',
321 silly install resolved _id: '[email protected]',
321 silly install resolved scripts: {},
321 silly install resolved _shasum: '9cd13c03adbff25b65effde7ce864ee952017098',
321 silly install resolved _from: '[email protected]',
321 silly install resolved _npmVersion: '2.7.5',
321 silly install resolved _nodeVersion: '0.12.2',
321 silly install resolved _npmUser: { name: 'rauchg', email: '[email protected]' },
321 silly install resolved maintainers: [ [Object] ],
321 silly install resolved dist:
321 silly install resolved { shasum: '9cd13c03adbff25b65effde7ce864ee952017098',
321 silly install resolved tarball: 'http://registry.npmjs.org/ms/-/ms-0.7.1.tgz' },
321 silly install resolved directories: {},
321 silly install resolved _resolved: 'https://registry.npmjs.org/ms/-/ms-0.7.1.tgz',
321 silly install resolved readme: 'ERROR: No README data found!' } ]
322 info install [email protected] into C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug
323 info installOne [email protected]
324 verbose installOne of ms to C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug not in flight; installing
325 verbose lock using C:\Users\g3237\AppData\Roaming\npm-cache_locks\ms-83e36c573aea4687.lock for C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug\node_modules\ms
326 silly install write writing ms 0.7.1 to C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug\node_modules\ms
327 verbose unbuild node_modules\node-libcurl\node_modules\debug\node_modules\ms
328 silly gentlyRm C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug\node_modules\ms is being purged from base C:\MyData\Workspace_431\Node_2
329 verbose gentlyRm don't care about contents; nuking C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug\node_modules\ms
330 verbose tar unpack C:\Users\g3237\AppData\Roaming\npm-cache\ms\0.7.1\package.tgz
331 verbose tar unpacking to C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug\node_modules\ms
332 silly gentlyRm C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug\node_modules\ms is being purged
333 verbose gentlyRm don't care about contents; nuking C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug\node_modules\ms
334 silly gunzTarPerm modes [ '777', '666' ]
335 silly gunzTarPerm extractEntry package.json
336 silly gunzTarPerm modified mode [ 'package.json', 420, 438 ]
337 silly gunzTarPerm extractEntry .npmignore
338 silly gunzTarPerm modified mode [ '.npmignore', 420, 438 ]
339 silly gunzTarPerm extractEntry README.md
340 silly gunzTarPerm modified mode [ 'README.md', 420, 438 ]
341 silly gunzTarPerm extractEntry LICENSE
342 silly gunzTarPerm modified mode [ 'LICENSE', 420, 438 ]
343 silly gunzTarPerm extractEntry index.js
344 silly gunzTarPerm modified mode [ 'index.js', 420, 438 ]
345 silly gunzTarPerm extractEntry History.md
346 silly gunzTarPerm modified mode [ 'History.md', 420, 438 ]
347 verbose write writing to C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug\node_modules\ms\package.json
348 info preinstall [email protected]
349 verbose readDependencies loading dependencies from C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug\node_modules\ms\package.json
350 verbose readDependencies loading dependencies from C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug\node_modules\ms\package.json
351 silly install resolved []
352 verbose about to build C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug\node_modules\ms
353 info build C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug\node_modules\ms
354 info linkStuff [email protected]
355 silly linkStuff [email protected] has C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug\node_modules as its parent node_modules
356 verbose linkBins [email protected]
357 verbose linkMans [email protected]
358 verbose rebuildBundles [email protected]
359 info install [email protected]
360 info postinstall [email protected]
361 verbose unlock done using C:\Users\g3237\AppData\Roaming\npm-cache_locks\ms-83e36c573aea4687.lock for C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug\node_modules\ms
362 verbose about to build C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug
363 info build C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug
364 info linkStuff [email protected]
365 silly linkStuff [email protected] has C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules as its parent node_modules
366 verbose linkBins [email protected]
367 verbose linkMans [email protected]
368 verbose rebuildBundles [email protected]
369 verbose rebuildBundles [ 'ms' ]
370 info install [email protected]
371 info postinstall [email protected]
372 verbose unlock done using C:\Users\g3237\AppData\Roaming\npm-cache_locks\debug-223dd6832f843145.lock for C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl\node_modules\debug
373 verbose about to build C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl
374 info build C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl
375 info linkStuff [email protected]
376 silly linkStuff [email protected] has C:\MyData\Workspace_431\Node_2\node_modules as its parent node_modules
377 verbose linkBins [email protected]
378 verbose linkMans [email protected]
379 verbose rebuildBundles [email protected]
380 verbose rebuildBundles [ 'bindings', 'debug', 'nan' ]
381 info install [email protected]
382 verbose unsafe-perm in lifecycle true
383 info [email protected] Failed to exec install script
384 verbose unlock done using C:\Users\g3237\AppData\Roaming\npm-cache_locks\node-libcurl-f10ad47f2d7e9bce.lock for C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl
385 verbose stack Error: [email protected] install: node tools/retrieve-win-deps && node tools/generate-stubs && node-gyp rebuild
385 verbose stack Exit status 1
385 verbose stack at EventEmitter. (C:\MyPrograms\iojs\node_modules\npm\lib\utils\lifecycle.js:213:16)
385 verbose stack at emitTwo (events.js:87:13)
385 verbose stack at EventEmitter.emit (events.js:172:7)
385 verbose stack at ChildProcess. (C:\MyPrograms\iojs\node_modules\npm\lib\utils\spawn.js:24:14)
385 verbose stack at emitTwo (events.js:87:13)
385 verbose stack at ChildProcess.emit (events.js:172:7)
385 verbose stack at maybeClose (internal/child_process.js:764:16)
385 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
386 verbose pkgid [email protected]
387 verbose cwd C:\MyData\Workspace_431\Node_2
388 error Windows_NT 6.1.7601
389 error argv "C:\MyPrograms\iojs\node.exe" "C:\MyPrograms\iojs\node_modules\npm\bin\npm-cli.js" "install" "node-libcurl"
390 error node v2.3.3
391 error npm v2.11.3
392 error code ELIFECYCLE
393 error [email protected] install: node tools/retrieve-win-deps && node tools/generate-stubs && node-gyp rebuild
393 error Exit status 1
394 error Failed at the [email protected] install script 'node tools/retrieve-win-deps && node tools/generate-stubs && node-gyp rebuild'.
394 error This is most likely a problem with the node-libcurl package,
394 error not with npm itself.
394 error Tell the author that this fails on your system:
394 error node tools/retrieve-win-deps && node tools/generate-stubs && node-gyp rebuild
394 error You can get their info via:
394 error npm owner ls node-libcurl
394 error There is likely additional logging output above.
395 verbose exit [ 1, true ]
396 verbose unbuild node_modules\node-libcurl
397 info preuninstall [email protected]
398 info uninstall [email protected]
399 verbose unbuild rmStuff [email protected] from C:\MyData\Workspace_431\Node_2\node_modules
400 info postuninstall [email protected]
401 silly gentlyRm C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl is being purged from base C:\MyData\Workspace_431\Node_2
402 verbose gentlyRm don't care about contents; nuking C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl
403 silly vacuum-fs purging C:\MyData\Workspace_431\Node_2\node_modules\node-libcurl
404 silly vacuum-fs removing C:\MyData\Workspace_431\Node_2\node_modules
405 silly vacuum-fs finished vacuuming up to C:\MyData\Workspace_431\Node_2

HTTP AUTH?!

Is HTTP Auth available? Cant finde some infos and cant create a working example for it.

segfault on 64-bit

Per the instructions on the libcurl site: you must pass a pointer to a long (not an int) when calling curl_easy_getinfo() with a numeric option (like RESPONSE_CODE).

Line 280 of node-curl.h uses "int" as the CType template parameter, when it should be a "long".

Changing this line and re-compiling fixes the issue for me.

Trash in POSTFIELDS

when send POST require
curl( url, { 'POST': 1, 'POSTFIELDS': post_query, 'POSTFIELDSIZE': post_query.length }, ...

in POST query trash...

CookieList returning same data for each cookie

Running examples/test.js on my system returns the correct number of cookies, but the cookie data is the same for each one.

To summarize test.js's output:

Open: www.google.com:

  • Added cookie PREF="ID=6ef7f0cf705f5289:FF=0:TM=1338154592:LM=1338154592:S=9OrGO0C7DRgMcigW" for domain google.com, path /, expire 1401226592
  • Added cookie NID="60=RBWHQ3I1T6h5eyH6Grb-a0i1z2lucuCgHpaEISYrD_32240arr2n5lrkQFskCOh0nzX1k2bYkMuH5QocCrMp_sXdIddA-4a5pKjMTVYnOnttk-J2mLATTrPpHW3PO4L9" for domain google.com, path /, expire 1353965792

Cookielist:
[ '.google.com\tTRUE\t/\tFALSE\t1401226592\tPREF\tID=6ef7f0cf705f5289:FF=0:TM=1338154592:LM=1338154592:S=9OrGO0C7DRgMcigW',
'.google.com\tTRUE\t/\tFALSE\t1401226592\tPREF\tID=6ef7f0cf705f5289:FF=0:TM=1338154592:LM=1338154592:S=9OrGO0C7DRgMcigW' ]

When loading Yahoo.com, cookielist contains:
[ '.yahoo.com\tTRUE\t/\tFALSE\t1306618591\tIU\tdeleted',
'.yahoo.com\tTRUE\t/\tFALSE\t1306618591\tIU\tdeleted',
'.yahoo.com\tTRUE\t/\tFALSE\t1306618591\tIU\tdeleted',
'.yahoo.com\tTRUE\t/\tFALSE\t1306618591\tIU\tdeleted',
'.yahoo.com\tTRUE\t/\tFALSE\t1306618591\tIU\tdeleted',
'.yahoo.com\tTRUE\t/\tFALSE\t1306618591\tIU\tdeleted',
'.yahoo.com\tTRUE\t/\tFALSE\t1306618591\tIU\tdeleted',
'.yahoo.com\tTRUE\t/\tFALSE\t1306618591\tIU\tdeleted',
'.yahoo.com\tTRUE\t/\tFALSE\t1306618591\tIU\tdeleted' ]

I'm using curl v7.26.0, node v0.6.17.

Thanks for making this awesome module!

Error: Cannot find module

Hi... I'm trying the basic example with google.com and it's givingme the error:

Error: Cannot find module '/media/arquivos/projetos/javaScript/jornaleiro/node_modules/node-curl/lib/../build/default/node-curl'
at Function._resolveFilename (module.js:337:11)
at Function._load (module.js:279:25)
at Module.require (module.js:359:17)
at require (module.js:375:17)
at Object. (/media/arquivos/projetos/javaScript/jornaleiro/node_modules/node-curl/lib/curl.js:10:12)
at Object. (/media/arquivos/projetos/javaScript/jornaleiro/node_modules/node-curl/lib/curl.js:155:4)
at Module._compile (module.js:446:26)
at Object..js (module.js:464:10)
at Module.load (module.js:353:31)
at Function._load (module.js:311:12)

I try to find out the solution, but I'm a node noob yet... I didn't find the module.js or the default folder inside build..

I'm using node.js 0.6.18, and before I was using 0.6.0 with this same error.

Tks

Getting segmentation issue

I am receiving segmentation error on CentOS 6.5 final.

gdb /usr/bin/php core-php-11-0-0-15549-1420697347
GNU gdb (GDB) Red Hat Enterprise Linux (7.2-64.el6_5.2)
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/bin/php...done.
[New Thread 15591]
[New Thread 15565]
[New Thread 15580]
[New Thread 15574]
[New Thread 15592]
[New Thread 15590]
[New Thread 15560]
[New Thread 15562]
[New Thread 15563]
[New Thread 15585]
[New Thread 15595]
[New Thread 15564]
[New Thread 15581]
[New Thread 15566]
[New Thread 15596]
[New Thread 15567]
[New Thread 15594]
[New Thread 15570]
[New Thread 15573]
[New Thread 15597]
[New Thread 15576]
[New Thread 15577]
[New Thread 15583]
[New Thread 15584]
[New Thread 15586]
[New Thread 15587]
[New Thread 15549]
[New Thread 15589]
[New Thread 15579]
[New Thread 15572]
[New Thread 15588]
[New Thread 15582]
[New Thread 15575]
[New Thread 15578]
[New Thread 15568]
[New Thread 15561]
[New Thread 15569]
[New Thread 15571]
[New Thread 15559]
[New Thread 15598]
[New Thread 15593]
Missing separate debuginfo for /usr/lib64/libaspell.so.15
Try: yum --disablerepo='' --enablerepo='-debug_' install /usr/lib/debug/.build-id/a9/3583a303b1fbba4bf8da0fd002fbb42f477baa
Missing separate debuginfo for /usr/lib64/libpspell.so.15
Try: yum --disablerepo='' --enablerepo='-debug_' install /usr/lib/debug/.build-id/e4/c20cff52b24c75ed7876ae251a05e7bd2226f4
Missing separate debuginfo for /lib64/libidn.so.11
Try: yum --disablerepo='' --enablerepo='-debug_' install /usr/lib/debug/.build-id/41/7a6ed67d904cd799091b56bdfada0d594bb094
Missing separate debuginfo for
Try: yum --disablerepo='' --enablerepo='-debug_' install /usr/lib/debug/.build-id/1e/0a7d58f454926e2afb4797865d85801ed65ece
Reading symbols from /lib64/libcrypt-2.12.so...Reading symbols from /usr/lib/debug/lib64/libcrypt-2.12.so.debug...done.
done.
Loaded symbols for /lib64/libcrypt-2.12.so
Reading symbols from /lib64/libz.so.1.2.3...Reading symbols from /usr/lib/debug/lib64/libz.so.1.2.3.debug...done.
done.
Loaded symbols for /lib64/libz.so.1.2.3
Reading symbols from /usr/lib64/libaspell.so.15...
warning: the debug information found in "/usr/lib/debug//usr/lib64/libaspell.so.15.1.4.debug" does not match "/usr/lib64/libaspell.so.15" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/usr/lib64/libaspell.so.15.1.4.debug" does not match "/usr/lib64/libaspell.so.15" (CRC mismatch).

Missing separate debuginfo for /usr/lib64/libaspell.so.15
Try: yum --disablerepo='' --enablerepo='-debug*' install /usr/lib/debug/.build-id/a9/3583a303b1fbba4bf8da0fd002fbb42f477baa.debug
(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libaspell.so.15
Reading symbols from /usr/lib64/libpspell.so.15...
warning: the debug information found in "/usr/lib/debug//usr/lib64/libpspell.so.15.1.4.debug" does not match "/usr/lib64/libpspell.so.15" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/usr/lib64/libpspell.so.15.1.4.debug" does not match "/usr/lib64/libpspell.so.15" (CRC mismatch).

Missing separate debuginfo for /usr/lib64/libpspell.so.15
Try: yum --disablerepo='' --enablerepo='-debug*' install /usr/lib/debug/.build-id/e4/c20cff52b24c75ed7876ae251a05e7bd2226f4.debug
(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libpspell.so.15
Reading symbols from /lib64/librt-2.12.so...Reading symbols from /usr/lib/debug/lib64/librt-2.12.so.debug...done.
done.
Loaded symbols for /lib64/librt-2.12.so
Reading symbols from /usr/lib64/libmcrypt.so.4.4.8...Reading symbols from /usr/lib/debug/usr/lib64/libmcrypt.so.4.4.8.debug...done.
done.
Loaded symbols for /usr/lib64/libmcrypt.so.4.4.8
Reading symbols from /usr/lib64/libstdc++.so.6.0.13...Reading symbols from /usr/lib/debug/usr/lib64/libstdc++.so.6.0.13.debug...done.
done.
Loaded symbols for /usr/lib64/libstdc++.so.6.0.13
Reading symbols from /usr/lib64/libfreetype.so.6.3.22...Reading symbols from /usr/lib/debug/usr/lib64/libfreetype.so.6.3.22.debug...done.
done.
Loaded symbols for /usr/lib64/libfreetype.so.6.3.22
Reading symbols from /usr/lib64/libpng12.so.0.49.0...Reading symbols from /usr/lib/debug/usr/lib64/libpng12.so.0.49.0.debug...done.
done.
Loaded symbols for /usr/lib64/libpng12.so.0.49.0
Reading symbols from /usr/lib64/libjpeg.so.62.0.0...Reading symbols from /usr/lib/debug/usr/lib64/libjpeg.so.62.0.0.debug...done.
done.
Loaded symbols for /usr/lib64/libjpeg.so.62.0.0
Reading symbols from /usr/lib64/libcurl.so.4.1.1...Reading symbols from /usr/lib/debug/usr/lib64/libcurl.so.4.1.1.debug...done.
done.
Loaded symbols for /usr/lib64/libcurl.so.4.1.1
Reading symbols from /lib64/libbz2.so.1.0.4...Reading symbols from /usr/lib/debug/lib64/libbz2.so.1.0.4.debug...done.
done.
Loaded symbols for /lib64/libbz2.so.1.0.4
Reading symbols from /lib64/libm-2.12.so...Reading symbols from /usr/lib/debug/lib64/libm-2.12.so.debug...done.
done.
Loaded symbols for /lib64/libm-2.12.so
Reading symbols from /lib64/libdl-2.12.so...Reading symbols from /usr/lib/debug/lib64/libdl-2.12.so.debug...done.
done.
Loaded symbols for /lib64/libdl-2.12.so
Reading symbols from /lib64/libnsl-2.12.so...Reading symbols from /usr/lib/debug/lib64/libnsl-2.12.so.debug...done.
done.
Loaded symbols for /lib64/libnsl-2.12.so
Reading symbols from /usr/lib64/libxml2.so.2.7.6...Reading symbols from /usr/lib/debug/usr/lib64/libxml2.so.2.7.6.debug...done.
done.
Loaded symbols for /usr/lib64/libxml2.so.2.7.6
Reading symbols from /lib64/libgssapi_krb5.so.2.2...Reading symbols from /usr/lib/debug/lib64/libgssapi_krb5.so.2.2.debug...done.
done.
Loaded symbols for /lib64/libgssapi_krb5.so.2.2
Reading symbols from /lib64/libkrb5.so.3.3...Reading symbols from /usr/lib/debug/lib64/libkrb5.so.3.3.debug...done.
done.
Loaded symbols for /lib64/libkrb5.so.3.3
Reading symbols from /lib64/libk5crypto.so.3.1...Reading symbols from /usr/lib/debug/lib64/libk5crypto.so.3.1.debug...done.
done.
Loaded symbols for /lib64/libk5crypto.so.3.1
Reading symbols from /lib64/libcom_err.so.2.1...Reading symbols from /usr/lib/debug/lib64/libcom_err.so.2.1.debug...done.
done.
Loaded symbols for /lib64/libcom_err.so.2.1
Reading symbols from /usr/lib64/libssl.so.1.0.1e...Reading symbols from /usr/lib/debug/usr/lib64/libssl.so.1.0.1e.debug...done.
done.
Loaded symbols for /usr/lib64/libssl.so.1.0.1e
Reading symbols from /usr/lib64/libcrypto.so.1.0.1e...Reading symbols from /usr/lib/debug/usr/lib64/libcrypto.so.1.0.1e.debug...done.
done.
Loaded symbols for /usr/lib64/libcrypto.so.1.0.1e
Reading symbols from /usr/lib64/libicui18n.so.42.1...Reading symbols from /usr/lib/debug/usr/lib64/libicui18n.so.42.1.debug...done.
done.
Loaded symbols for /usr/lib64/libicui18n.so.42.1
Reading symbols from /usr/lib64/libicuuc.so.42.1...Reading symbols from /usr/lib/debug/usr/lib64/libicuuc.so.42.1.debug...done.
done.
Loaded symbols for /usr/lib64/libicuuc.so.42.1
Reading symbols from /usr/lib64/libicudata.so.42.1...Reading symbols from /usr/lib/debug/usr/lib64/libicudata.so.42.1.debug...
warning: "/usr/lib/debug/usr/lib64/libicudata.so.42.1.debug": separate debug info file has no debug info
(no debugging symbols found)...done.
(no debugging symbols found)...done.
Loaded symbols for /usr/lib64/libicudata.so.42.1
Reading symbols from /usr/lib64/libicuio.so.42.1...Reading symbols from /usr/lib/debug/usr/lib64/libicuio.so.42.1.debug...done.
done.
Loaded symbols for /usr/lib64/libicuio.so.42.1
Reading symbols from /lib64/libgcc_s-4.4.7-20120601.so.1...Reading symbols from /usr/lib/debug/lib64/libgcc_s-4.4.7-20120601.so.1.debug...done.
done.
Loaded symbols for /lib64/libgcc_s-4.4.7-20120601.so.1
Reading symbols from /lib64/libpthread-2.12.so...Reading symbols from /usr/lib/debug/lib64/libpthread-2.12.so.debug...done.
[Thread debugging using libthread_db enabled]
done.
Loaded symbols for /lib64/libpthread-2.12.so
Reading symbols from /lib64/libc-2.12.so...Reading symbols from /usr/lib/debug/lib64/libc-2.12.so.debug...done.
done.
Loaded symbols for /lib64/libc-2.12.so
Reading symbols from /lib64/libresolv-2.12.so...Reading symbols from /usr/lib/debug/lib64/libresolv-2.12.so.debug...done.
done.
Loaded symbols for /lib64/libresolv-2.12.so
Reading symbols from /lib64/libfreebl3.so...Reading symbols from /usr/lib/debug/lib64/libfreebl3.so.debug...done.
done.
Loaded symbols for /lib64/libfreebl3.so
Reading symbols from /lib64/ld-2.12.so...Reading symbols from /usr/lib/debug/lib64/ld-2.12.so.debug...done.
done.
Loaded symbols for /lib64/ld-2.12.so
Reading symbols from /lib64/libidn.so.11...
warning: the debug information found in "/usr/lib/debug//lib64/libidn.so.11.6.1.debug" does not match "/lib64/libidn.so.11" (CRC mismatch).

warning: the debug information found in "/usr/lib/debug/lib64/libidn.so.11.6.1.debug" does not match "/lib64/libidn.so.11" (CRC mismatch).

Missing separate debuginfo for /lib64/libidn.so.11
Try: yum --disablerepo='' --enablerepo='-debug*' install /usr/lib/debug/.build-id/41/7a6ed67d904cd799091b56bdfada0d594bb094.debug
(no debugging symbols found)...done.
Loaded symbols for /lib64/libidn.so.11
Reading symbols from /lib64/libldap-2.4.so.2.5.6...Reading symbols from /usr/lib/debug/lib64/libldap-2.4.so.2.5.6.debug...done.
done.
Loaded symbols for /lib64/libldap-2.4.so.2.5.6
Reading symbols from /usr/lib64/libssl3.so...Reading symbols from /usr/lib/debug/usr/lib64/libssl3.so.debug...done.
done.
Loaded symbols for /usr/lib64/libssl3.so
Reading symbols from /usr/lib64/libsmime3.so...Reading symbols from /usr/lib/debug/usr/lib64/libsmime3.so.debug...done.
done.
Loaded symbols for /usr/lib64/libsmime3.so
Reading symbols from /usr/lib64/libnss3.so...Reading symbols from /usr/lib/debug/usr/lib64/libnss3.so.debug...done.
done.
Loaded symbols for /usr/lib64/libnss3.so
Reading symbols from /usr/lib64/libnssutil3.so...Reading symbols from /usr/lib/debug/usr/lib64/libnssutil3.so.debug...done.
done.
Loaded symbols for /usr/lib64/libnssutil3.so
Reading symbols from /lib64/libplds4.so...Reading symbols from /usr/lib/debug/lib64/libplds4.so.debug...done.
done.
Loaded symbols for /lib64/libplds4.so
Reading symbols from /lib64/libplc4.so...Reading symbols from /usr/lib/debug/lib64/libplc4.so.debug...done.
done.
Loaded symbols for /lib64/libplc4.so
Reading symbols from /lib64/libnspr4.so...Reading symbols from /usr/lib/debug/lib64/libnspr4.so.debug...done.
done.
Loaded symbols for /lib64/libnspr4.so
Reading symbols from /usr/lib64/libssh2.so.1.0.1...Reading symbols from /usr/lib/debug/usr/lib64/libssh2.so.1.0.1.debug...done.
done.
Loaded symbols for /usr/lib64/libssh2.so.1.0.1
Reading symbols from /lib64/libkrb5support.so.0.1...Reading symbols from /usr/lib/debug/lib64/libkrb5support.so.0.1.debug...done.
done.
Loaded symbols for /lib64/libkrb5support.so.0.1
Reading symbols from /lib64/libkeyutils.so.1.3...Reading symbols from /usr/lib/debug/lib64/libkeyutils.so.1.3.debug...done.
done.
Loaded symbols for /lib64/libkeyutils.so.1.3
Reading symbols from /lib64/liblber-2.4.so.2.5.6...Reading symbols from /usr/lib/debug/lib64/liblber-2.4.so.2.5.6.debug...done.
done.
Loaded symbols for /lib64/liblber-2.4.so.2.5.6
Reading symbols from /usr/lib64/libsasl2.so.2.0.23...Reading symbols from /usr/lib/debug/usr/lib64/libsasl2.so.2.0.23.debug...done.
done.
Loaded symbols for /usr/lib64/libsasl2.so.2.0.23
Reading symbols from /lib64/libselinux.so.1...Reading symbols from /usr/lib/debug/lib64/libselinux.so.1.debug...done.
done.
Loaded symbols for /lib64/libselinux.so.1
Reading symbols from /lib64/libnss_files-2.12.so...Reading symbols from /usr/lib/debug/lib64/libnss_files-2.12.so.debug...done.
done.
Loaded symbols for /lib64/libnss_files-2.12.so
Reading symbols from /lib64/libnss_dns-2.12.so...Reading symbols from /usr/lib/debug/lib64/libnss_dns-2.12.so.debug...done.
done.
Loaded symbols for /lib64/libnss_dns-2.12.so
Core was generated by `php -f /home/cask/kr_nopear_walkthrough_without_log.php 10000'.
Program terminated with signal 11, Segmentation fault.
#0 0x0000003b0f82f94d in Curl_llist_remove (list=0x7f6088000078, e=0x7f60884fc8e0, user=0x0) at llist.c:108

108 e->prev->next = e->next;
(gdb)
(gdb) bt
#0 0x0000003b0f82f94d in Curl_llist_remove (list=0x7f6088000078, e=0x7f60884fc8e0, user=0x0) at llist.c:108
#1 0x0000003b0f82f9f7 in Curl_llist_destroy (list=0x7f6088000078, user=0x0) at llist.c:128
#2 0x0000003b0f830062 in Curl_hash_init (h=0x3b0fa534a0, slots=, hfunc=, comparator=, dtor=)

at hash.c:80

#3 0x0000003b0f80f562 in Curl_global_host_cache_init () at hostip.c:139
#4 0x0000003b0f82cae3 in curl_easy_perform (curl=0x7f606c5d3b30) at easy.c:529
#5 0x0000000000530d07 in zif_curl_exec (ht=, return_value=0x7f606c5975e0, return_value_ptr=, this_ptr=,

return_value_used=<value optimized out>, tsrm_ls=0x7f606c30aa50) at /usr/local/php-5.5.6/ext/curl/interface.c:2941

#6 0x00000000008e5412 in zend_do_fcall_common_helper_SPEC (execute_data=, tsrm_ls=) at /usr/local/php-5.5.6/Zend/zend_vm_execute.h:550
#7 0x00000000008d55bb in execute_ex (execute_data=0x7f606c3e82d0, tsrm_ls=0x7f606c30aa50) at /usr/local/php-5.5.6/Zend/zend_vm_execute.h:363
#8 0x00000000008479c9 in zend_call_function (fci=0x7f605f3f0a90, fci_cache=, tsrm_ls=0x7f606c30aa50) at /usr/local/php-5.5.6/Zend/zend_execute_API.c:939
#9 0x0000000000871291 in zend_call_method (object_pp=0x7f606c4c34d0, obj_ce=, fn_proxy=0x0, function_name=0xd43a48 "run", function_name_len=,

retval_ptr_ptr=0x7f605f3f0db0, param_count=0, arg1=0x0, arg2=0x0, tsrm_ls=0x7f606c30aa50) at /usr/local/php-5.5.6/Zend/zend_interfaces.c:97

#10 0x0000000000695867 in pthreads_routine (arg=0x326c2d0) at /usr/local/php-5.5.6/ext/pthreads/src/object.c:948
#11 0x0000003b060079d1 in start_thread (arg=0x7f605f3f1700) at pthread_create.c:301
#12 0x0000003b058e886d in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115

npm install node-curl fails -- Build failed: -> task failed (err #1): {task: cxx node-curl.cc -> node-curl_1.o}

I'm leveraging node-curl in my latest project, and when I try to deploy to Heroku I'm getting the following errors:

2012-11-23T17:48:15+00:00 app[web.1]: [Fri Nov 23 2012 17:48:15 GMT+0000 (UTC)] ERROR Unable to load /app/scripts/deploy: Error: Cannot find module '/app/node_modules/node-curl/lib/../build/default/node-curl'
2012-11-23T17:48:15+00:00 app[web.1]: Error: Cannot find module '/app/node_modules/node-curl/lib/../build/default/node-curl'
2012-11-23T17:48:15+00:00 app[web.1]: at Object. (/app/node_modules/node-curl/lib/curl.js:79:4)
2012-11-23T17:48:15+00:00 app[web.1]: at Module.require (module.js:359:17)
2012-11-23T17:48:15+00:00 app[web.1]: at Function._resolveFilename (module.js:337:11)
2012-11-23T17:48:15+00:00 app[web.1]: at require (module.js:375:17)
2012-11-23T17:48:15+00:00 app[web.1]: at Object. (/app/node_modules/node-curl/lib/curl.js:8:12)
2012-11-23T17:48:15+00:00 app[web.1]: at Module.load (module.js:353:31)
2012-11-23T17:48:15+00:00 app[web.1]: at Function._load (module.js:311:12)

As part of my debugging I ran npm install node-curl locally, and got the following:

carmstrong:resubot chris$ npm install node-curl
npm http GET https://registry.npmjs.org/node-curl
npm http 200 https://registry.npmjs.org/node-curl
npm http GET https://registry.npmjs.org/node-curl/-/node-curl-0.1.4.tgz
npm http 200 https://registry.npmjs.org/node-curl/-/node-curl-0.1.4.tgz

[email protected] install /Users/chris/code/JulySixteen/resubot/node_modules/node-curl
sh src/generate_curl_options_list.sh && node-waf configure build || true

generate src/integer_options.h
date: illegal option -- R
usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
generate src/string_options.h
date: illegal option -- R
usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
generate src/integer_infos.h
date: illegal option -- R
usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
generate src/string_infos.h
date: illegal option -- R
usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
generate src/double_infos.h
date: illegal option -- R
usage: date [-jnu] [-d dst] [-r seconds] [-t west] [-v[+|-]val[ymwdHMS]] ...
[-f fmt date | [[[mm]dd]HH]MM[[cc]yy][.ss]] [+format]
Setting srcdir to : /Users/chris/code/JulySixteen/resubot/node_modules/node-curl
Setting blddir to : /Users/chris/code/JulySixteen/resubot/node_modules/node-curl/build
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : not found
Checking for node prefix : ok /usr/local
'configure' finished successfully (0.594s)
Waf: Entering directory /Users/chris/code/JulySixteen/resubot/node_modules/node-curl/build' [1/2] cxx: src/node-curl.cc -> build/Release/src/node-curl_1.o In file included from ../src/node-curl.cc:1: ../src/node-curl.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::Initialize(v8::Handle<v8::Object>)’: ../src/node-curl.h:403: error: ‘CURLOPT_MAIL_RCPT’ was not declared in this scope ../src/node-curl.h:407: error: ‘CURLOPT_RESOLVE’ was not declared in this scope Waf: Leaving directory/Users/chris/code/JulySixteen/resubot/node_modules/node-curl/build'
Build failed: -> task failed (err #1):
{task: cxx node-curl.cc -> node-curl_1.o}
[email protected] node_modules/node-curl

unable to do curl operation

system type : 64-bit operating system, x64-based processor
os : windows 8

-----my script----

var curl = require('curlrequest');

var options = {
url: 'api.github.com/repos/jiangmiao/node-curl'
, verbose: true
, stderr: true
};

curl.request(options, function (err, data) {
data = JSON.parse(data.toString());
console.log(data);
});

----------------------------Errror ----------------------------
events.js:72
throw er; // Unhandled 'error' event
^
Error: spawn ENOENT
at errnoException (child_process.js:1001:11)
at Process.ChildProcess._handle.onexit (child_process.js:792:34)

install problem...

I got this when trying to install:

npm http GET https://registry.npmjs.org/node-curl
npm http 200 https://registry.npmjs.org/node-curl
npm http GET https://registry.npmjs.org/node-curl/-/node-curl-0.1.4.tgz
npm http 200 https://registry.npmjs.org/node-curl/-/node-curl-0.1.4.tgz

[email protected] install /opt/apps/nodeServer/service-layer-server/node_modules/node-curl
sh src/generate_curl_options_list.sh && node-waf configure build || true

generate src/integer_options.h
cat: /usr/include/curl/curl.h: No such file or directory
generate src/string_options.h
cat: /usr/include/curl/curl.h: No such file or directory
generate src/integer_infos.h
cat: /usr/include/curl/curl.h: No such file or directory
generate src/string_infos.h
cat: /usr/include/curl/curl.h: No such file or directory
generate src/double_infos.h
cat: /usr/include/curl/curl.h: No such file or directory
sh: node-waf: not found

and when run, i got this:
$ node testCurl.js

module.js:340
throw err;
^
Error: Cannot find module '/opt/apps/nodeServer/service-layer-server/node_modules/node-curl/lib/../build/default/node-curl'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:362:17)
at require (module.js:378:17)
at Object. (/opt/apps/nodeServer/service-layer-server/node_modules/node-curl/lib/curl.js:8:12)
at Object. (/opt/apps/nodeServer/service-layer-server/node_modules/node-curl/lib/curl.js:79:4)
at Module._compile (module.js:449:26)
at Object.Module._extensions..js (module.js:467:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)

I'm using Node.js 0.8.4 is hat a version problem?

install error--‘CURLOPT_SOURCE_USERPWD’ was not declared

When i install node-curl , I get error

Setting srcdir to : /home/nodejs/test/node_modules/node-curl
Setting blddir to : /home/nodejs/test/node_modules/node-curl/build
Checking for program g++ or c++ : /usr/bin/g++
Checking for program cpp : /usr/bin/cpp
Checking for program ar : /usr/bin/ar
Checking for program ranlib : /usr/bin/ranlib
Checking for g++ : ok
Checking for node path : ok /root/.node_libraries
Checking for node prefix : ok /usr/local
'configure' finished successfully (0.059s)
Waf: Entering directory /home/nodejs/test/node_modules/node-curl/build' [1/2] cxx: src/node-curl.cc -> build/Release/src/node-curl_1.o ../src/string_options.h: In static member function ‘static v8::Handle<v8::Value> NodeCurl::Initialize(v8::Handle<v8::Object>)’: ../src/string_options.h:50: error: ‘CURLOPT_SOURCE_USERPWD’ was not declared in this scope ../src/string_options.h:51: error: ‘CURLOPT_SOURCE_PREQUOTE’ was not declared in this scope ../src/string_options.h:52: error: ‘CURLOPT_SOURCE_POSTQUOTE’ was not declared in this scope ../src/string_options.h:54: error: ‘CURLOPT_SOURCE_URL’ was not declared in this scope ../src/string_options.h:55: error: ‘CURLOPT_SOURCE_QUOTE’ was not declared in this scope Waf: Leaving directory/home/nodejs/test/node_modules/node-curl/build'
Build failed: -> task failed (err #1):
{task: cxx node-curl.cc -> node-curl_1.o}


environment
1.curl version
[root@localhost ~]# curl -V
curl 7.28.0 (x86_64-unknown-linux-gnu) libcurl/7.28.0 OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp
Features: IDN IPv6 Largefile NTLM NTLM_WB SSL libz
2. CentOS5.5 64bit

how can i fix it ? thanks!

http PATCH and json Data

Hi,

i'm not exactly sure how i can use the http patch method and transfer json data?
I want an equivalent for

curl -X PATCH --data '{"rrsets": [ {"name": "test.example.net.", "type": "A", "ttl": 3600, "changetype": "REPLACE", "records": [ {"content": "127.0.0.1", "disabled": false} ] } ] }' -H 'X-API-Key: xxx' http://127.0.0.1:8081/api/v1/servers/localhost/zones/example.net.

setting the Header is no problem, but where can i set the request type and the data?

thanks for your help

regards

celevra

Compiler error with Node v0.12.0

I get a whole bunch of errors when attempting to install with Node v0.12.0 OSX Yosemite. Is anyone else seeing these? To my untrained eye, it looks as if an update to V8 has broken things.

> [email protected] install /Users/james/Dropbox/carmm_shared/ServerWatcher_James/node-checker/node_modules/node-curl
> sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build)

extract constants from /usr/include/curl/curl.h
generate src/integer_options.h
generate src/string_options.h
generate src/integer_infos.h
generate src/string_infos.h
generate src/double_infos.h
child_process: customFds option is deprecated, use stdio instead.
  CXX(target) Release/obj.target/node-curl/src/node-curl.o
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:178:43: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
        static v8::Handle<v8::Value> close(const v8::Arguments & args)
                                                 ^~~~~~~~~~~~~
                                                 v8::internal::Arguments
/Users/james/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:265:45: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
        static v8::Handle<v8::Value> getinfo(const v8::Arguments &args)
                                                   ^~~~~~~~~~~~~
                                                   v8::internal::Arguments
/Users/james/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:278:49: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
        static v8::Handle<v8::Value> getinfo_int(const v8::Arguments & args)
                                                       ^~~~~~~~~~~~~
                                                       v8::internal::Arguments
/Users/james/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:283:49: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
        static v8::Handle<v8::Value> getinfo_str(const v8::Arguments & args)
                                                       ^~~~~~~~~~~~~
                                                       v8::internal::Arguments
/Users/james/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:288:52: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
        static v8::Handle<v8::Value> getinfo_double(const v8::Arguments & args)
                                                          ^~~~~~~~~~~~~
                                                          v8::internal::Arguments
/Users/james/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:293:51: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
        static v8::Handle<v8::Value> getinfo_slist(const v8::Arguments & args)
                                                         ^~~~~~~~~~~~~
                                                         v8::internal::Arguments
/Users/james/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:330:48: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
        static v8::Handle<v8::Value> setopt_int(const v8::Arguments & args)
                                                      ^~~~~~~~~~~~~
                                                      v8::internal::Arguments
/Users/james/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:335:48: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
        static v8::Handle<v8::Value> setopt_str(const v8::Arguments & args)
                                                      ^~~~~~~~~~~~~
                                                      v8::internal::Arguments
/Users/james/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:347:50: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
        static v8::Handle<v8::Value> setopt_slist(const v8::Arguments & args)
                                                        ^~~~~~~~~~~~~
                                                        v8::internal::Arguments
/Users/james/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:355:53: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
        static v8::Handle<v8::Value> setopt_httppost(const v8::Arguments & args)
                                                           ^~~~~~~~~~~~~
                                                           v8::internal::Arguments
/Users/james/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:426:41: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
        static v8::Handle<v8::Value> New(const v8::Arguments & args)
                                               ^~~~~~~~~~~~~
                                               v8::internal::Arguments
/Users/james/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:433:45: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
        static v8::Handle<v8::Value> process(const v8::Arguments & args)
                                                   ^~~~~~~~~~~~~
                                                   v8::internal::Arguments
/Users/james/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:476:45: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
        static v8::Handle<v8::Value> perform(const v8::Arguments & args)
                                                   ^~~~~~~~~~~~~
                                                   v8::internal::Arguments
/Users/james/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:496:47: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
        static v8::Handle<v8::Value> get_count(const v8::Arguments & args )
                                                     ^~~~~~~~~~~~~
                                                     v8::internal::Arguments
/Users/james/.node-gyp/0.12.0/deps/v8/include/v8.h:127:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:124:11: error: no member named 'AdjustAmountOfExternalAllocatedMemory' in 'v8::V8'
                v8::V8::AdjustAmountOfExternalAllocatedMemory(2*4096);
                ~~~~~~~~^
../src/node-curl.h:125:11: error: no member named 'SetPointerInInternalField' in 'v8::Object'; did you mean 'SetAlignedPointerInInternalField'?
                object->SetPointerInInternalField(0, this);
                        ^~~~~~~~~~~~~~~~~~~~~~~~~
                        SetAlignedPointerInInternalField
/Users/james/.node-gyp/0.12.0/deps/v8/include/v8.h:2266:8: note: 'SetAlignedPointerInInternalField' declared here
  void SetAlignedPointerInInternalField(int index, void* value);
       ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:126:40: error: 'New' is a private member of 'v8::PersistentBase<v8::Object>'
                handle = v8::Persistent<v8::Object>::New(object);
                                                     ^
/Users/james/.node-gyp/0.12.0/deps/v8/include/v8.h:572:23: note: declared private here
  V8_INLINE static T* New(Isolate* isolate, T* that);
                      ^
In file included from ../src/node-curl.cc:1:
../src/node-curl.h:126:12: error: too few arguments to function call, expected 2, have 1; did you mean '::NodeCurl::New'?
                handle = v8::Persistent<v8::Object>::New(object);
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
                         ::NodeCurl::New
../src/node-curl.h:426:31: note: '::NodeCurl::New' declared here
        static v8::Handle<v8::Value> New(const v8::Arguments & args)
                                     ^
../src/node-curl.h:127:10: error: no member named 'MakeWeak' in 'v8::Persistent<v8::Object, v8::NonCopyablePersistentTraits<v8::Object> >'
                handle.MakeWeak(this, destructor);
                ~~~~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]

node-curl fails to install

npm install node-curl gives this error:

error (sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build))
error Exit status 127

Cannot install 0.3.3

I found a lota challenge in installing the latest version.

I am using digitalocean nodejs application build

node -v
v0.12.4
npm -v 
2.10.1

And errors found - npm install node-curl

What is Error: Cannot find module '/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js'



> [email protected] install /myproject/node_modules/node-curl
> sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build)

extract constants from /usr/include/curl/curl.h
generate src/integer_options.h
generate src/string_options.h
generate src/integer_infos.h
generate src/string_infos.h
generate src/double_infos.h
module.js:338
    throw err;
          ^
Error: Cannot find module '/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3
sh: 1: node-waf: not found
npm ERR! Linux 3.13.0-52-generic
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "node-curl"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn

npm ERR! [email protected] install: `sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build)`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the [email protected] install script 'sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build)'.
npm ERR! This is most likely a problem with the node-curl package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     sh src/generate_curl_options_list.sh && (node-gyp rebuild || node-waf configure build)
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-curl
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /myproject/npm-debug.log



Get stream data

How can I get the stream data if callback is only called after connection ended?

Thanks

Error: Cannot find module

Hello, I'm trying the example with google.com and getting the error:
i am using MAC 10.8.2, "node": "0.8.14"

[ERROR] Error
Error: Cannot find module '/Users/babrah/Desktop/nodeJadeDb/node_modules/node-curl-custom/lib/../build/default/node-curl'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/Users/babrah/Desktop/nodeJadeDb/node_modules/node-curl-custom/lib/curl.js:8:12)
    at Object.<anonymous> (/Users/babrah/Desktop/nodeJadeDb/node_modules/node-curl-custom/lib/curl.js:79:4)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Object..js (/usr/local/lib/node_modules/node-dev/wrapper.js:121:15)
    at Module.load (module.js:356:32)

installation was successful:

npm http GET https://registry.npmjs.org/node-curl
npm http 304 https://registry.npmjs.org/node-curl

> [email protected] install /Users/babrah/Desktop/nodeJadeDb/node_modules/node-curl
> sh src/generate_curl_options_list.sh && node-waf configure build || true

generate src/integer_options.h
generate src/string_options.h
generate src/integer_infos.h
generate src/string_infos.h
generate src/double_infos.h
Setting srcdir to                        : /Users/babrah/Desktop/nodeJadeDb/node_modules/node-curl 
Setting blddir to                        : /Users/babrah/Desktop/nodeJadeDb/node_modules/node-curl/build 
Checking for program g++ or c++          : /usr/bin/g++ 
Checking for program cpp                 : /usr/bin/cpp 
Checking for program ar                  : /usr/bin/ar 
Checking for program ranlib              : /usr/bin/ranlib 
Checking for g++                         : ok  
Checking for node path                   : not found 
Checking for node prefix                 : ok /usr/local 
'configure' finished successfully (0.040s)
Waf: Entering directory `/Users/babrah/Desktop/nodeJadeDb/node_modules/node-curl/build'
[1/2] cxx: src/node-curl.cc -> build/Release/src/node-curl_1.o
[2/2] cxx_link: build/Release/src/node-curl_1.o -> build/Release/node-curl.node
Waf: Leaving directory `/Users/babrah/Desktop/nodeJadeDb/node_modules/node-curl/build'
'build' finished successfully (0.673s)
[email protected] node_modules/node-curl

files in installed module:

babrah$ find node_modules/node-curl/build/
node_modules/node-curl/build/
node_modules/node-curl/build//.wafpickle-7
node_modules/node-curl/build//c4che
node_modules/node-curl/build//c4che/build.config.py
node_modules/node-curl/build//c4che/Release.cache.py
node_modules/node-curl/build//config.log
node_modules/node-curl/build//Release
node_modules/node-curl/build//Release/node-curl.node
node_modules/node-curl/build//Release/src
node_modules/node-curl/build//Release/src/node-curl_1.o

example curl.js:

babrah$ node node_modules/node-curl/examples/curl.js google.com

module.js:340
    throw err;
          ^
Error: Cannot find module '/Users/babrah/Desktop/nodeJadeDb/node_modules/node-curl/lib/../build/default/node-curl'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:362:17)
    at require (module.js:378:17)
    at Object.<anonymous> (/Users/babrah/Desktop/nodeJadeDb/node_modules/node-curl/lib/curl.js:8:12)
    at Object.<anonymous> (/Users/babrah/Desktop/nodeJadeDb/node_modules/node-curl/lib/curl.js:80:4)
    at Module._compile (module.js:449:26)
    at Object.Module._extensions..js (module.js:467:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)

How to read response header from curl

How to read response header from curl ? Can you please share an example.

curl.on('end', function() {
p('code: ' + curl.getinfo('RESPONSE_HTTPHEADER));
p('done.')
curl.close();
});

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.