node.js - java npm安装错误

标签 node.js node-gyp rebuild

在执行 npm install 时,我收到与 node-gyp 重建相关的错误。 这与java包有关。 npm install 在带有 jdk 1.8 的 64 位 Linux 机器上运行 对于这个问题有什么指示吗?请找到下面的日志

日志

npm ERR! Linux 2.6.32-573.18.1.el6.x86_64
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "install" "java"
npm ERR! node v5.9.1
npm ERR! npm  v3.7.3
npm ERR! code ELIFECYCLE

npm ERR! java@0.6.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the java@0.6.1 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the java package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs java
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls java
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /u01/app/e5/tst01/mripo/scripts/npm-debug.log

最佳答案

对我来说,运行的技巧是什么:

npm rebuild

然后再

npm install

我相信编译的依赖项之一被搞乱了,重建修复了它。

关于node.js - java npm安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36214130/

相关文章:

node.js - sinon - 创建返回自己参数的 stub

javascript - 从 Node 路由中的json访问数组中的对象值

node.js - NPM : Cannot find module 'node-gyp/bin/node-gyp'

node.js - 安装pg Node 模块时出错

c++ - 如果 Makefile 更改,Automake 会重建源文件

sql - 插入/更新/删除记录会自动更新索引吗?

node.js - 文件 createWriteStream 中的 NodeError [ERR_STREAM_WRITE_AFTER_END] : write after end,

node.js - nodejs/electron-forge/node-gyp : Could not find any Visual Studio installation to use after trying all the tips I could find online

c - 重建正在删除我的 .lib

android - 将 Android 客户端用于 socketIO 时出现 SocketIO 异常