node-java icon indicating copy to clipboard operation
node-java copied to clipboard

problem installing npm java for windows

Open karn1993 opened this issue 6 years ago • 1 comments

Hello: do you know what could be wrong?

Thanks in advance for your help

$ npm install java

Error:- gyp ERR! stack at ChildProcess.exithandler (child_process.js:301:5) gyp ERR! stack at ChildProcess.emit (events.js:198:13) gyp ERR! stack at maybeClose (internal/child_process.js:982:16) gyp ERR! System Windows_NT 10.0.17134 gyp ERR! node -v v10.16.0 gyp ERR! node-gyp -v v5.0.3 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.

karn1993 avatar Jul 30 '19 14:07 karn1993

I have ran into a number of issues. I believe I resolved this by making sure that the environment path pointed to the correct version of Java.

Path=C:\Java\SDK\sdk1.8.0_251_64\bin;C:\Python27\Scripts;C:\Python27;

wjs4572 avatar Aug 21 '20 15:08 wjs4572