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

node-gyp rebuild failing for integer #277

Closed
MattIPv4 opened this issue Jun 16, 2019 · 6 comments
Closed

node-gyp rebuild failing for integer #277

MattIPv4 opened this issue Jun 16, 2019 · 6 comments

Comments

@MattIPv4
Copy link

Hi there,

When attempting to install better-sqlite3 on macOS Catalina (10.15), it fails due to integer error-ing during the node-gyp rebuild process.

Whilst I would assume therefor that node-gyp or integer would be the best places to get help, I was wondering if anyone here had any ideas or if this dependency could be replaced with something that doesn't require node-gyp.

npm i better-sqlite3

> integer@2.1.0 install /Users/mattcowley/Downloads/test/node_modules/integer
> node-gyp rebuild

make: *** No rule to make target `../../../../../../../usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi', needed by `Makefile'.  Stop.
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:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:182:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)
gyp ERR! System Darwin 19.0.0
gyp ERR! command "/usr/local/Cellar/node/10.10.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/mattcowley/Downloads/test/node_modules/integer
gyp ERR! node -v v10.10.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
npm WARN test@1.0.0 No description
npm WARN test@1.0.0 No repository field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! integer@2.1.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the integer@2.1.0 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/mattcowley/.npm/_logs/2019-06-16T13_19_52_219Z-debug.log
@MattIPv4
Copy link
Author

@Custardcs
Copy link

so im not sure if its the operating system. every time i reload.. and load up my projects on mac/windows i run into this problem..

so I do a npm I on both Int and gyp. sometimes it goes thru.. If not i delete my node modules folder. I download everything else 1st then last I download bettersqlite3 then afterwards i run the rebuild script.

let me know if this helps.. as im on 10.14

@cekvenich
Copy link

Let me know it this fixes it, run before install: npm i -g node-gyp@latest

@JoshuaWise
Copy link
Member

This should be fixed in the latest version of better-sqlite3 (v6.0.1).

@merc1er
Copy link

merc1er commented May 15, 2020

I am still having this issue.

npm ERR! integer@2.1.0 install: node-gyp rebuild``

@JoshuaWise
Copy link
Member

JoshuaWise commented May 15, 2020

@merc1er Upgrade to version 7.0.1. This issue is definitely fixed in the newest version (I was wrong about it being fixed in v6.0.1).

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

No branches or pull requests

5 participants