gpt4 book ai didi

node.js - java npm安装错误

转载 作者:太空宇宙 更新时间:2023-11-03 22:31:40 34 4
gpt4 key购买 nike

在执行 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/

34 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com