Comments (5)
It appears that I haven't placed any package.json as I dont maintain any specific version dependencies. Does this cause a problem?
Yes, it does. You need a package.json file even if you are not publishing your project anywhere else, that is because npm get the dependencies from the file itself, run npm init
inside the directory of your project, it will guide you through the creation of such file.
After the file is created you can run npm install node-libcurl --save --loglevel verbose
, the --save
flag add node-libcurl to your dependencies in the package.json.
from node-libcurl.
I did added package.json as per your suggestion. However, I am still getting the same error...
Also, my main intention is to install node-curl which is also triggering some simillar error. Hope these two libraries are having something in common for build failure due to my environment. I could able to instal successfully node-curl in my mac but not here in this linux machine.
[root@host1 ayla]# npm install node-libcurl --save --loglevel verbose
npm info it worked if it ends with ok
npm verb cli [ '/usr/bin/node',
npm verb cli '/usr/bin/npm',
npm verb cli 'install',
npm verb cli 'node-libcurl',
npm verb cli '--save',
npm verb cli '--loglevel',
npm verb cli 'verbose' ]
npm info using [email protected]
npm info using [email protected]
npm WARN package.json [email protected] No description
npm WARN package.json [email protected] No repository field.
npm WARN package.json [email protected] No README data
npm WARN package.json [email protected] No repository field.
npm verb readDependencies using package.json deps
npm verb cache add [ 'node-libcurl', null ]
npm verb cache add name=undefined spec="node-libcurl" args=["node-libcurl",null]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: 'node-libcurl',
npm verb parsed url path: 'node-libcurl',
npm verb parsed url href: 'node-libcurl' }
npm verb lock node-libcurl /root/.npm/c4bad0d6-node-libcurl.lock
npm verb addNamed [ 'node-libcurl', '' ]
npm verb addNamed [ null, '*' ]
npm verb lock node-libcurl@ /root/.npm/c29d924f-node-libcurl.lock
npm verb request where is /node-libcurl
npm verb request registry https://registry.npmjs.org/
npm verb request id cd0ac59fd227d1dc
npm verb url raw /node-libcurl
npm verb url resolving [ 'https://registry.npmjs.org/', './node-libcurl' ]
npm verb url resolved https://registry.npmjs.org/node-libcurl
npm verb request where is https://registry.npmjs.org/node-libcurl
npm info trying registry request attempt 1 at 14:25:53
npm verb etag "2OWMX5YYT70JCVTKZ8SV2OEDL"
npm http GET https://registry.npmjs.org/node-libcurl
npm http 304 https://registry.npmjs.org/node-libcurl
npm verb etag https://registry.npmjs.org/node-libcurl from cache
npm verb addNamed [ 'node-libcurl', '0.1.3' ]
npm verb addNamed [ '0.1.3', '0.1.3' ]
npm verb lock [email protected] /root/.npm/6763a3ed-node-libcurl-0-1-3.lock
npm info install [email protected] into /usr/local/node/ayla
npm info installOne [email protected]
npm WARN engine [email protected]: wanted: {"node":">= 0.8.0 && < 0.11.0"} (current: {"node":"0.10.36","npm":"1.4.28"})
npm verb node_modules/node-libcurl unbuild
npm verb tar unpack /root/.npm/node-libcurl/0.1.3/package.tgz
npm verb lock tar:///usr/local/node/ayla/node_modules/node-libcurl /root/.npm/8c728c45-e-ayla-node-modules-node-libcurl.lock
npm verb lock tar:///root/.npm/node-libcurl/0.1.3/package.tgz /root/.npm/9a536f86-m-node-libcurl-0-1-3-package-tgz.lock
npm info preinstall [email protected]
npm verb readDependencies using package.json deps
npm verb readDependencies using package.json deps
npm verb cache add [ 'bindings@~1.2.0', null ]
npm verb cache add name=undefined spec="bindings@~1.2.0" args=["bindings@~1.2.0",null]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: 'bindings@~1.2.0',
npm verb parsed url path: 'bindings@~1.2.0',
npm verb parsed url href: 'bindings@~1.2.0' }
npm verb cache add name="bindings" spec="~1.2.0" args=["bindings","~1.2.0"]
npm verb parsed url { protocol: null,
npm verb parsed url slashes: null,
npm verb parsed url auth: null,
npm verb parsed url host: null,
npm verb parsed url port: null,
npm verb parsed url hostname: null,
npm verb parsed url hash: null,
npm verb parsed url search: null,
npm verb parsed url query: null,
npm verb parsed url pathname: '~1.2.0',
npm verb parsed url path: '~1.2.0',
npm verb parsed url href: '~1.2.0' }
npm verb addNamed [ 'bindings', '~1.2.0' ]
npm verb addNamed [ null, '>=1.2.0-0 <1.3.0-0' ]
npm verb lock bindings@~1.2.0 /root/.npm/b6dd1de3-bindings-1-2-0.lock
npm verb request where is /bindings
npm verb request registry https://registry.npmjs.org/
npm verb url raw /bindings
npm verb url resolving [ 'https://registry.npmjs.org/', './bindings' ]
npm verb url resolved https://registry.npmjs.org/bindings
npm verb request where is https://registry.npmjs.org/bindings
npm info trying registry request attempt 1 at 14:25:53
npm verb etag "BJGP1201ZXLWX88VO1W0N0YSR"
npm http GET https://registry.npmjs.org/bindings
npm http 304 https://registry.npmjs.org/bindings
npm verb etag https://registry.npmjs.org/bindings from cache
npm verb addNamed [ 'bindings', '1.2.1' ]
npm verb addNamed [ '1.2.1', '1.2.1' ]
npm verb lock [email protected] /root/.npm/e9060511-bindings-1-2-1.lock
npm info install [email protected] into /usr/local/node/ayla/node_modules/node-libcurl
npm info installOne [email protected]
npm verb node_modules/node-libcurl/node_modules/bindings unbuild
npm verb tar unpack /root/.npm/bindings/1.2.1/package.tgz
npm verb lock tar:///usr/local/node/ayla/node_modules/node-libcurl/node_modules/bindings /root/.npm/e8ec0a13-de-libcurl-node-modules-bindings.lock
npm verb lock tar:///root/.npm/bindings/1.2.1/package.tgz /root/.npm/479db54d-t-npm-bindings-1-2-1-package-tgz.lock
npm info preinstall [email protected]
npm verb readDependencies using package.json deps
npm verb readDependencies using package.json deps
npm verb about to build /usr/local/node/ayla/node_modules/node-libcurl/node_modules/bindings
npm info build /usr/local/node/ayla/node_modules/node-libcurl/node_modules/bindings
npm verb linkStuff [ false,
npm verb linkStuff false,
npm verb linkStuff false,
npm verb linkStuff '/usr/local/node/ayla/node_modules/node-libcurl/node_modules' ]
npm info linkStuff [email protected]
npm verb linkBins [email protected]
npm verb linkMans [email protected]
npm verb rebuildBundles [email protected]
npm info install [email protected]
npm info postinstall [email protected]
npm verb about to build /usr/local/node/ayla/node_modules/node-libcurl
npm info build /usr/local/node/ayla/node_modules/node-libcurl
npm verb linkStuff [ false, false, false, '/usr/local/node/ayla/node_modules' ]
npm info linkStuff [email protected]
npm verb linkBins [email protected]
npm verb linkMans [email protected]
npm verb rebuildBundles [email protected]
npm verb rebuildBundles [ 'bindings' ]
npm info install [email protected]
[email protected] install /usr/local/node/ayla/node_modules/node-libcurl
node tools/retrieve-win-deps && node tools/generate-stubs && node-gyp rebuild
Cannot find curl's header file.
npm verb unsafe-perm in lifecycle false
npm info [email protected] Failed to exec install script
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.
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! System Linux 2.6.32-431.17.1.el6.x86_64
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "node-libcurl" "--save" "--loglevel" "verbose"
npm ERR! cwd /usr/local/node/ayla
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm verb exit [ 1, true ]
npm verb node_modules/node-libcurl unbuild
npm info preuninstall [email protected]
npm info uninstall [email protected]
npm verb true,/usr/local/node/ayla/node_modules,/usr/local/node/ayla/node_modules unbuild [email protected]
npm info postuninstall [email protected]
npm ERR! not ok code 0
from node-libcurl.
Cannot find curl's header file.
Install the libcurl header files, from what I can tell, you are running CentOs, so: sudo yum install libcurl-devel
from node-libcurl.
Thank you very much for your help This really worked for me but I tried it using yum install libcurl-devel.x86_64.
Thank you very much once again for your help.
from node-libcurl.
Glad I could help!
from node-libcurl.
Related Issues (20)
- How can I write a custom request asynchronously? HOT 1
- [feat] rewrite `node-libcurl` with, the **ONLY** isomorphic way, napi HOT 1
- Curl Easy segmentation fault with requests to external site HOT 3
- Expected npx node-libcurl $URL to work as curl $URL HOT 1
- TypeError: Class extends value #<Object> is not a constructor or null HOT 1
- HTTP_CONTENT_DECODING = false but still decodes the server's responses HOT 1
- How to make multiple curly instances maintain separate connections to same host? HOT 2
- unable to npm install HOT 3
- npm install issues. HOT 5
- libcurl vuln HOT 2
- Add prebuilt binaries for nodejs 20 LTS HOT 13
- read raw msg HOT 3
- Does node-libcurl support res_init? HOT 1
- Error after upgrade to Node 20.10 ...: ERR_DLOPEN_FAILED HOT 2
- SFTP / SSH stuck on login when using Curl/Multi and password auth HOT 2
- Curly - Close connection - Timeout Exception HOT 3
- Cannot install HOT 3
- Send binary data with HTTPPOST option HOT 1
- Hanging on PROTOCONNECTING
- Add prebuilt binaries for node 21(macOS) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-libcurl.