Still Module.js ERROR
clarkzjw opened this issue · 1 comments
clarkzjw commented
Hey, I have already install node-canvas - (Cairo)
& nodegit
on Ubuntu 14.04 LTS, and when I try to npm install -g gitbanner
, I got the error as follows. By the way, I have read the previous issues, but I have configured as what you said, but still failed.
The error:
> canvas@1.1.5 install /usr/lib/node_modules/gitbanner/node_modules/canvas
> node-gyp rebuild
make:进入目录'/usr/lib/node_modules/gitbanner/node_modules/canvas/build'
SOLINK_MODULE(target) Release/obj.target/canvas-postbuild.node
SOLINK_MODULE(target) Release/obj.target/canvas-postbuild.node: Finished
COPY Release/canvas-postbuild.node
CXX(target) Release/obj.target/canvas/src/Canvas.o
CXX(target) Release/obj.target/canvas/src/CanvasGradient.o
CXX(target) Release/obj.target/canvas/src/CanvasPattern.o
CXX(target) Release/obj.target/canvas/src/CanvasRenderingContext2d.o
CXX(target) Release/obj.target/canvas/src/color.o
CXX(target) Release/obj.target/canvas/src/Image.o
CXX(target) Release/obj.target/canvas/src/ImageData.o
CXX(target) Release/obj.target/canvas/src/init.o
CXX(target) Release/obj.target/canvas/src/PixelArray.o
CXX(target) Release/obj.target/canvas/src/FontFace.o
SOLINK_MODULE(target) Release/obj.target/canvas.node
SOLINK_MODULE(target) Release/obj.target/canvas.node: Finished
COPY Release/canvas.node
make:离开目录“/usr/lib/node_modules/gitbanner/node_modules/canvas/build”
> nodegit@0.1.4 install /usr/lib/node_modules/gitbanner/node_modules/nodegit
> node install.js
[nodegit] Determining dependencies.
[nodegit] Removing vendor/libgit2.
[nodegit] Fetching vendor/libgit2.
[nodegit] Configuring native node module.
[nodegit] Building native node module.
[nodegit] Failed to build nodegit.
[nodegit] Attempting to fallback on a prebuilt binary.
[nodegit] Fetching binary from S3.
[nodegit] Failed to build and install nodegit.
Command failed: [nodegit] Command failed:
module.js:356
Module._extensions[extension](this, filename);
^
Error: /usr/lib/node_modules/gitbanner/node_modules/nodegit/build/Release/nodegit.node: wrong ELF class: ELFCLASS64
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at [eval]:1:1
at Object.<anonymous> ([eval]-wrapper:6:22)
at Module._compile (module.js:456:26)
at evalScript (node.js:536:25)
at startup (node.js:80:7)
at node.js:906:3
node-pre-gyp ERR! Testing local pre-built binary failed, attempting to re-download
node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: connect ECONNREFUSED
node-pre-gyp ERR! stack at errnoException (net.js:904:11)
node-pre-gyp ERR! stack at Object.afterConnect [as oncomplete] (net.js:895:19)
node-pre-gyp ERR! System Linux 3.13.0-29-generic
node-pre-gyp ERR! command "node" "/usr/lib/node_modules/gitbanner/node_modules/nodegit/node_modules/.bin/node-pre-gyp" "install"
node-pre-gyp ERR! cwd /usr/lib/node_modules/gitbanner/node_modules/nodegit
node-pre-gyp ERR! node -v v0.10.29
node-pre-gyp ERR! node-pre-gyp -v v0.5.16
node-pre-gyp ERR! not ok
Error: Command failed: [nodegit] Command failed:
module.js:356
Module._extensions[extension](this, filename);
^
Error: /usr/lib/node_modules/gitbanner/node_modules/nodegit/build/Release/nodegit.node: wrong ELF class: ELFCLASS64
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
at [eval]:1:1
at Object.<anonymous> ([eval]-wrapper:6:22)
at Module._compile (module.js:456:26)
at evalScript (node.js:536:25)
at startup (node.js:80:7)
at node.js:906:3
node-pre-gyp ERR! Testing local pre-built binary failed, attempting to re-download
node-pre-gyp ERR! install error
node-pre-gyp ERR! stack Error: connect ECONNREFUSED
node-pre-gyp ERR! stack at errnoException (net.js:904:11)
node-pre-gyp ERR! stack at Object.afterConnect [as oncomplete] (net.js:895:19)
node-pre-gyp ERR! System Linux 3.13.0-29-generic
node-pre-gyp ERR! command "node" "/usr/lib/node_modules/gitbanner/node_modules/nodegit/node_modules/.bin/node-pre-gyp" "install"
node-pre-gyp ERR! cwd /usr/lib/node_modules/gitbanner/node_modules/nodegit
node-pre-gyp ERR! node -v v0.10.29
node-pre-gyp ERR! node-pre-gyp -v v0.5.16
node-pre-gyp ERR! not ok
at ChildProcess.exithandler (child_process.js:647:15)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:755:16)
at Process.ChildProcess._handle.onexit (child_process.js:822:5)
[nodegit] Completed installation successfully.
/usr/bin/gitbanner -> /usr/lib/node_modules/gitbanner/bin/gitbanner
gitbanner@0.0.6 /usr/lib/node_modules/gitbanner
├── optimist@0.6.1 (wordwrap@0.0.2, minimist@0.0.10)
├── canvas@1.1.5 (nan@1.2.0)
└── nodegit@0.1.4 (which@1.0.5, rimraf@2.2.8, q@1.0.1, nan@1.2.0, fs-extra@0.9.1, tar@0.1.20, request@2.36.0, node-gyp@0.13.1)
I haven't learnt js, so I have no idea now.
clarkzjw commented
I tried on a brand new Ubuntu, and it works finally.