question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Installation fails on Ubuntu 14.04

See original GitHub issue

Installing ungit with the command

$ sudo -H npm install -g ungit

fails with the following message:

> ws@0.4.31 install /usr/local/lib/node_modules/ungit/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)

npm ERR! not ok code 0

I have npm version 1.3.10.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
normanrcommented, Sep 22, 2014

A better fix than manually creating the symlink is to install the nodejs-legacy package which does this for you.

3reactions
kinncjcommented, Jul 3, 2014

Cuz the binary name in ubuntu is nodejs instead of node.

try to: sudo ln -s /usr/bin/nodejs /usr/bin/node

2014-07-03 16:39 GMT-04:00 vitaut notifications@github.com:

Here’s the content of builderror.log:

/bin/sh: 1: node: not found gyp: Call to ‘node -p -e “require(‘path’).dirname(require.resolve(‘nan’))”’ ret$ 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.$ gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17) gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797$ gyp ERR! System Linux 3.13.0-30-generic gyp ERR! command “nodejs” “/usr/bin/node-gyp” “rebuild” gyp ERR! cwd /usr/local/lib/node_modules/ungit/node_modules/socket.io/node_modu$ gyp ERR! node -v v0.10.25 gyp ERR! node-gyp -v v0.10.10 gyp ERR! not ok

Strangely, node was not installed when installing npm. However, installing node manually doesn’t help either:

$ sudo apt-get install nodejs $ sudo -H npm install -g ungit … npm http 304 https://registry.npmjs.org/asn1/0.1.11

npm ERR! not ok code 0

— Reply to this email directly or view it on GitHub https://github.com/FredrikNoren/ungit/issues/401#issuecomment-47982120.

---------------------------------------------------

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to install Ubuntu 14.04 64 bit
I was trying to install Ubuntu 14.04 64 bit on my acer aspire e15. it has intel pentium quad core processor N3540. Inserted...
Read more >
I'm trying to install packages in Ubuntu 14.04 LTS but ... - Quora
Originally Answered: I'm trying to install packages in Ubuntu 14.04 LTS but it shows me error E: Unable to correct problems, you have...
Read more >
Installation Script fails in Ubuntu 14.04 · Issue #785 - GitHub
Hello, I get several errors when running your script in Ubuntu 14.04, and then it fails. Please see the log below: ++ whoami...
Read more >
Compilation on Ubuntu 14.04 failed - installation
I failed to compile it on ubuntu 14.04. The problem is related with QT (couldbe the libraries). I am not sure which one...
Read more >
Onboarding Ubuntu 14.04 failing to install.
Onboarding Ubuntu 14.04 failing to install. I went throught the detailsed steps and still cant get mdatp to install in Ubuntu 14.04.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found