i got a strange Issue which seems to be unique in the internet. It all started with a simple
sudo npm install java
This resulted in :
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: 2
gyp 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 synfis-backend@0.9.1 No description
npm WARN synfis-backend@0.9.1 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! java@0.12.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the java@0.12.1 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
I did a lot of research on the internet and grabbed every straw i found. In the end nothing works and i hope this is not the obvious error in the universe.
I appreciate every help!
Thanks in advance
Problem is solved/avoided by downgrading to
java version "1.8.0_241" Java(TM) SE Runtime Environment (build 1.8.0_241-b07) Java HotSpot(TM) 64-Bit Server VM (build 25.241-b07, mixed mode)