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

Cannot npm install on macOS or linux #107

Open
wesleyguirra opened this issue Jul 1, 2020 · 6 comments
Open

Cannot npm install on macOS or linux #107

wesleyguirra opened this issue Jul 1, 2020 · 6 comments

Comments

@wesleyguirra
Copy link

I'm having a issue with installation on macOS Catalina and ubuntu the error log is this:

2 warnings generated.
  SOLINK_MODULE(target) Release/binding.node
ld: warning: directory not found for option '-L/Library/Frameworks/Firebird.framework/Libraries/'
ld: library not found for -lfbclient
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [Release/binding.node] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/wesleyguirra/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:189:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Darwin 19.2.0
gyp ERR! command "/Users/wesleyguirra/.nvm/versions/node/v10.15.3/bin/node" "/Users/wesleyguirra/.nvm/versions/node/v10.15.3/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/wesleyguirra/Development/atria-api-node/node_modules/firebird
gyp ERR! node -v v10.15.3
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] 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/wesleyguirra/.npm/_logs/2020-07-01T12_01_43_363Z-debug.log

Someone is having this issue, can help me?

@wesleyguirra
Copy link
Author

@xdenser

@erokshark
Copy link

erokshark commented Jul 6, 2020

Try this:

Open a PowerShell console with admin rights, go to your project folder and execute as following:

npm install --global --production windows-build-tools

@NicoAiko
Copy link

@wesleyguirra You need the Firebird Server/Client installed on your machine.

@erokshark This doesn't do on macOS/Linux.

@wesleyguirra
Copy link
Author

@erokshark I was using macOS with docker.

@NicoAiko I was using docker with linux image with the firebird installed.

@NicoAiko
Copy link

@erokshark I was using macOS with docker.

@NicoAiko I was using docker with linux image with the firebird installed.

From your error log it seems you try to use this package on macOS. Even if you have a docker image with firebird installed where your database is located, (I do the same by the way) you still need to install the Firebird Server on MacOS so you have the native libclient that is necessary to compile the node plugin.

@wesleyguirra
Copy link
Author

Ok, understood. Thank you!

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

3 participants