我已经克隆了节点-java,当我运行node配置构建或npm安装时,我会看到下面的错误。我的JAVA_HOME设置为:/opt/ Java /jdk1.7/JAVA_HOME,对一些Java应用程序来说很好。我正在使用Ubuntu 14.04.2 LTS
gyp: Call to 'node findJavaHome.js' returned exit status 127. while trying to load binding.gyp
gyp ERR! configure error
gyp ERR! stack Error: `gyp` failed with exit code: 1
gyp ERR! stack at ChildProcess.onCpExit (/usr/share/node-gyp/lib/configure.js:431:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at 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 发布于 2015-07-08 21:58:00
这是由于Ubuntu上的节点/nodejs命名问题所致。我通过执行以下命令避免了错误:
sudo ln -s /usr/bin/nodejs /usr/bin/node虽然这里有一个不同的首选解决方案:nodejs vs node on ubuntu 12.04
https://stackoverflow.com/questions/31274496
复制相似问题