-
Notifications
You must be signed in to change notification settings - Fork 284
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: Error: make
failed with exit code: 2
#494
Comments
I just tried to install it on a blank directory. Just in case there is a conflict with any of my other installed modules. I got the same result/error |
Hi I can confirm that I too have received the same error messaging.
|
I could make it work by downgrading to JVA 1.8.. I guess the problem is that after 1.10 they deleted the "jre/lib/ext" dir |
Getting the exact same issue. I'm a bit new to this. When you say downgrading to JVA 1.8 do you mean you downgraded your java to 0.8.0? I have just done so but getting the same issue. npm ERR! [email protected] install: |
Hi i just downloaded this file : jdk-8u241-macosx-x64.dmg a quick google search should do the job |
Solved by downgrading to jdk-8u241-macosx-x64
java version "1.8.0_241" |
Hi
while i try to install the java module on my nodejs (currently running the lts v12) i get this error
I also got a thread on stackoverflow but they told me to repost it here. https://stackoverflow.com/questions/60323778/node-gyp-error-make-failed-with-exit-code-2
I am a newbee on this sector so please be gentle. I tried realy hard to solve this problem by searching on google.
4 warnings generated. SOLINK_MODULE(target) Release/nodejavabridge_bindings.node ld: library not found for -ljli clang: error: linker command failed with exit code 1 (use -v to see invocation) make: *** [Release/nodejavabridge_bindings.node] Error 1 gyp ERR! build error gyp ERR! stack Error:
make` failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/Users/bob/.nvm/versions/node/v12.16.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:311:20)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
gyp ERR! System Darwin 19.3.0
gyp ERR! command "/Users/bob/.nvm/versions/node/v12.16.1/bin/node" "/Users/bob/.nvm/versions/node/v12.16.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/bob/Documents/node-synfis-backend/node_modules/java
gyp ERR! node -v v12.16.1
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm WARN The package @types/fs-extra is included as both a dev and production dependency.
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/bob/.npm/_logs/2020-02-21T08_10_18_068Z-debug.log`
The text was updated successfully, but these errors were encountered: