rfrench / curler Goto Github PK
View Code? Open in Web Editor NEWA native c++ node.js module for asynchronous http requests via libcurl.
License: MIT License
A native c++ node.js module for asynchronous http requests via libcurl.
License: MIT License
I'm running Node v0.10.25, and npm install curler
succeeds correctly,
but when I'm trying to require("curler")
:
> require("curler")
Error: Cannot find module 'curler'
at Function.Module._resolveFilename (module.js:338:15)
at Function.Module._load (module.js:280:25)
at Module.require (module.js:364:17)
at require (module.js:380:17)
Changing "main": "curler.node"
to "main": "build/Release/curler.node", in
package.json` should fix this.
Hi, I'm getting error while trying to install curler ( npm i curler ) :
ERR! [email protected] install: node-waf configure build install
ERR! sh "-c" "node-waf configure build install"
failed with 1
ERR!
ERR! Failed at the [email protected] install script.
ERR! This is most likely a problem with the curler package,
ERR! not with npm itself.
ERR! Tell the author that this fails on your system:
ERR! node-waf configure build install
ERR! You can get their info via:
ERR! npm owner ls curler
ERR! There is likely additional logging output above.
ERR!
ERR! System Linux 2.6.37.6-smp
ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "i" "curler"
ERR! cwd /var/www/node/legal/database
ERR! node -v v0.8.2
ERR! npm -v 1.1.21
ERR! code ELIFECYCLE
ERR! message [email protected] install: node-waf configure build install
ERR! message sh "-c" "node-waf configure build install"
failed with 1
ERR! errno {}
verbose exit [ 1, true ]
almad@namtar ~/project/apiary $ npm install curler
npm http GET https://registry.npmjs.org/curler
npm http 200 https://registry.npmjs.org/curler
npm http GET https://registry.npmjs.org/curler/-/curler-0.0.1.tgz
npm http 200 https://registry.npmjs.org/curler/-/curler-0.0.1.tgz
> [email protected] install /home/almad/project/apiary/node_modules/curler
> node-waf configure build install
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 /home/almad/.nvm/v0.8.19
Checking for library curl : yes
'configure' finished successfully (1.930s)
Waf: Entering directory `/home/almad/project/apiary/node_modules/curler/build'
[1/3] cxx: src/curler.cc -> build/Release/src/curler_1.o
[2/3] cxx: src/curl_client.cc -> build/Release/src/curl_client_1.o
../src/curler.cc: In static member function ‘static int Curler::RequestWorker(eio_req*)’:
../src/curler.cc:135:28: error: ‘curlClient’ was not declared in this scope
../src/curler.cc:135:45: error: expected type-specifier
../src/curler.cc:135:45: error: expected ‘;’
../src/curler.cc:137:11: error: type ‘<type error>’ argument given to ‘delete’, expected pointer
../src/curler.cc: In static member function ‘static std::string Curler::ToUpper(std::string)’:
../src/curler.cc:201:4: error: ‘transform’ is not a member of ‘std’
../src/curler.cc: In static member function ‘static std::string Curler::ToLower(std::string)’:
../src/curler.cc:206:4: error: ‘transform’ is not a member of ‘std’
Waf: Leaving directory `/home/almad/project/apiary/node_modules/curler/build'
Build failed: -> task failed (err #1):
{task: cxx curler.cc -> curler_1.o}
> [email protected] preuninstall /home/almad/project/apiary/node_modules/curler
> rm -rf build/*
npm ERR! weird error 1
npm ERR! not ok code 0
almad@namtar ~/project/apiary $ g++ -v
Using built-in specs.
COLLECT_GCC=/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3/g++
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/4.6.3/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-4.6.3/work/gcc-4.6.3/configure --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.6.3 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.3/include/g++-v4 --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --disable-altivec --disable-fixed-point --without-ppl --without-cloog --enable-lto --enable-nls --without-included-gettext --with-system-zlib --enable-obsolete --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/4.6.3/python --enable-checking=release --disable-libgcj --enable-libstdcxx-time --enable-languages=c,c++,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-targets=all --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.6.3 p1.11, pie-0.5.2'
Thread model: posix
gcc version 4.6.3 (Gentoo 4.6.3 p1.11, pie-0.5.2)
almad@namtar ~/project/apiary $ node -v
v0.8.19
almad@namtar ~/project/apiary $ npm -v
1.3.0
almad@namtar ~/project/apiary $
stretch/sid
v4.2.1
v2.14.7
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.