ubuntu - Node.js: Call to 'node findJavaHome.js' returned exit status 127. while trying to load binding.gyp -


i've cloned node-java , when run node-gyp configure build or npm install, error below. java_home set to: /opt/java/jdk1.7/latest , works fine java applications. i'm using ubuntu 14.04.2 lts

gyp: call 'node findjavahome.js' returned exit status 127. while trying load binding.gyp gyp err! configure error  gyp err! stack error: `gyp` failed exit code: 1 gyp err! stack     @ childprocess.oncpexit (/usr/share/node-gyp/lib/configure.js:431:16) gyp err! stack     @ childprocess.eventemitter.emit (events.js:98:17) gyp err! stack     @ process.childprocess._handle.onexit (child_process.js:797:12) gyp err! system linux 3.13.0-55-generic gyp err! command "nodejs" "/usr/bin/node-gyp" "configure" "build" gyp err! cwd /home/dev/temp/node-java gyp err! node -v v0.10.25 gyp err! node-gyp -v v0.10.10 gyp err! not ok  

this due node/nodejs naming issue on ubuntu. got around error executing:

sudo ln -s /usr/bin/nodejs /usr/bin/node 

although there's different preferred solution here: nodejs vs node on ubuntu 12.04


Comments

Popular posts from this blog

android - Pass an Serializable object in AIDL -

How to provide Authorization & Authentication using Asp.net, C#? -

How to use Authorization & Authentication in Asp.net, C#? -