node-pre-gyp: Error: Completion callback never invoked

E:\TEST\sqlite3>npm install sqlite3

sqlite3@4.0.0 install E:\TEST\sqlite3\node_modules\sqlite3 node-pre-gyp install --fallback-to-build

node-pre-gyp ERR! Completion callback never invoked! node-pre-gyp ERR! System Windows_NT 6.1.7601 node-pre-gyp ERR! command “D:\nodejs\node.exe” “E:\TEST\sqlite3\node_module s\sqlite3\node_modules\node-pre-gyp\bin\node-pre-gyp” “install” “–fallback -to-build” node-pre-gyp ERR! cwd E:\TEST\sqlite3\node_modules\sqlite3 node-pre-gyp ERR! node -v v8.9.3 node-pre-gyp ERR! node-pre-gyp -v v0.9.0 node-pre-gyp ERR! This is a bug in node-pre-gyp. node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not he lp: node-pre-gyp ERR! https://github.com/mapbox/node-pre-gyp/issues npm ERR! code ENOSYS npm ERR! errno ENOSYS npm ERR! syscall kill npm ERR! kill ENOSYS

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Reactions: 12
  • Comments: 38 (7 by maintainers)

Most upvoted comments

face the same issue

npm install -g node-pre-gyp …(this will install v0.9.0) npm update node-pre-gyp …(this will update it to 0.10.0)

or alternatively npm install -g node-pre-gyp@0.10.0

Hello, I had the same problem, I disabled my antivirus (kaspersky) and it ran like a charm. Hope it can help.

how to solve this????

Try with yarn instead of npm. it works for me.

For me, it was a network issue. switched to mobile hotspot and it worked

This is really annoying.

I ran into this issue today in my Mac Pro with node v8.

Is there a workaround to make it work?

Update

I just made it work after I switched my computer from the Wifi(China Telecom) to my Android Phone Hotspot(China Mobile).

Before

$ npm i grpc

> grpc@1.12.4 install /Users/zixia/chatie/grpc/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library

node-pre-gyp ERR! Completion callback never invoked! 
node-pre-gyp ERR! System Darwin 16.7.0
node-pre-gyp ERR! command "/usr/local/Cellar/node@8/8.11.1/bin/node" "/Users/zixia/chatie/grpc/node_modules/grpc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" "--library=static_library"
node-pre-gyp ERR! cwd /Users/zixia/chatie/grpc/node_modules/grpc
node-pre-gyp ERR! node -v v8.11.1
node-pre-gyp ERR! node-pre-gyp -v v0.10.0
node-pre-gyp ERR! This is a bug in `node-pre-gyp`.
node-pre-gyp ERR! Try to update node-pre-gyp and file an issue if it does not help:
node-pre-gyp ERR!     <https://github.com/mapbox/node-pre-gyp/issues>
npm ERR! code ELIFECYCLE
npm ERR! errno 6
npm ERR! grpc@1.12.4 install: `node-pre-gyp install --fallback-to-build --library=static_library`
npm ERR! Exit status 6
npm ERR! 
npm ERR! Failed at the grpc@1.12.4 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/zixia/.npm/_logs/2018-06-25T07_09_20_041Z-debug.log

After

$ npm i grpc

> grpc@1.12.4 install /Users/zixia/chatie/grpc/node_modules/grpc
> node-pre-gyp install --fallback-to-build --library=static_library

[grpc] Success: "/Users/zixia/chatie/grpc/node_modules/grpc/src/node/extension_binary/node-v57-darwin-x64-unknown/grpc_node.node" is installed via remote
npm notice created a lockfile as package-lock.json. You should commit this file.
+ grpc@1.12.4
added 88 packages from 41 contributors and audited 1928 packages in 17.403s
found 11 vulnerabilities (1 low, 9 moderate, 1 high)
  run `npm audit fix` to fix them, or `npm audit` for details

Conclusion

I believe it’s a network issue on my case. We should have more clear error message for this kind of situation.

@D4you208 I had this issue when using firebase cloud functions… (it was used by firebase-admin i think)… So i solved it by “npm install firebase-admin --force”… But this solution could work only for cloud functions, because it’s executed on the server and i think there isn’t such problem… So all i need to install it locally to pass lint check before deploy… (i think it will not work locally)

has anyone fixed this issue yet?? Mine always works for a short period of time then all of a sudden this issue shows up… After i gave up on windows i dualbooted with an ubuntu and installed it there then it fixed my problem… Then it worked for a short period and then the problem came back… I immediately installed it on a third OS , this time on a mac but the same issue showed up from the beginning… I have a feeling Node is simply broken… No matter how many times i switched node version with nvm and reinstalled node and everything it never installed firebase and angularfire2 …

In my case , deleting the package lock and re generating it solved the problem

was having the same problem, uninstalled Node v12 and installed Node version 10.19 and it worked for me https://nodejs.org/dist/latest-v10.x/

Thanks for the detailed report @zixia

I believe it’s a network issue on my case. We should have more clear error message for this kind of situation.

If you upgrade (or ask the grpc developers to upgrade) node-pre-gyp to v0.10.2 I think the error message will improve since v0.10.2 includes https://github.com/mapbox/node-pre-gyp/pull/377.

A potential root cause would be network failure or potentially (if you are behind a proxy with one network) #400