Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Cannot find module 'node-pre-gyp' #4

Open
vipulsolanki8466 opened this issue Sep 8, 2018 · 4 comments
Open

Error: Cannot find module 'node-pre-gyp' #4

vipulsolanki8466 opened this issue Sep 8, 2018 · 4 comments

Comments

@vipulsolanki8466
Copy link

Got error while running npm install curl-request --save

node-libcurl ERR! Error: Command failed: node "/Users/dev/Documents/project/node_modules/curl-request/node_modules/node-libcurl/lib/Curl.js"
module.js:471
    throw err;
    ^

Error: Cannot find module 'node-pre-gyp'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/Users/dev/Documents/project/node_modules/curl-request/node_modules/node-libcurl/lib/Curl.js:25:16)
    at Module._compile (module.js:570:32)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
@do-web
Copy link
Owner

do-web commented Jun 9, 2019

have you tried npm install node-libcurl --build-from-source ?

@chockuatm
Copy link

chockuatm commented Oct 5, 2019

How to fix the issue ? . And my npm version 6.4.1

@ramgp
Copy link

ramgp commented Nov 19, 2019

I think the reason is because it depends on node-libcurl@^1.2.0 which is pretty old. If your linux or OS version of libcurl is greater than 7.58 or so you will get the error.

e.g. on Ubuntu 18.04 it works which ships with [email protected], but on more recent versions of it a newer version of libcurl4 is used which leads to this error during install.

@kollol-dev
Copy link

any fix of that issue yet ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants