簡體   English   中英

node-gyp構建錯誤Java模塊

[英]node-gyp build error java module

我在嘗試在NodeJS應用中安裝JAVA模塊時遇到了麻煩。 我正在使用Ubuntu:

  • NodeJS v6.2.0
  • NPM: 3.8.9
  • Node- gyp v3.3.1
  • 皮頓(Pyhton): 2.7.12
  • GCC: 5.4.0

我在嘗試npm install遇到了所有這些錯誤:

gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/nsanz/.nvm/versions/node/v6.2.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Linux 4.4.0-21-generic
gyp ERR! command "/home/nsanz/.nvm/versions/node/v6.2.0/bin/node" "/home/nsanz/.nvm/versions/node/v6.2.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /home/nsanz/Documentos/projects/node-parse-tgd/node_modules/java
gyp ERR! node -v v6.2.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok 
npm ERR! Linux 4.4.0-21-generic
npm ERR! argv "/home/nsanz/.nvm/versions/node/v6.2.0/bin/node" "/home/nsanz/.nvm/versions/node/v6.2.0/bin/npm" "install"
npm ERR! node v6.2.0
npm ERR! npm  v3.8.9
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!     /home/nsanz/Documentos/projects/node-parse-tgd/npm-debug.log

我已經嘗試過重新安裝node-gyp和build-essentials,但仍然無法安裝JAVA模塊。

當Java包含在版本“ ^ 0.6.0”中時,我已經看到了這一點。 將其增加到0.7.0或更好地解決了該問題。

https://github.com/nodejs/node/issues/10289

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM