samedi 28 février 2015

Error when installing log.io using npm

I am trying to install log.io following the instruction from http://ift.tt/Hbf34s. It suggests using npm install command.



npm install -g log.io


The error I am getting is like below. And I tried on both Mac OS and Ubuntu, both no luck. Can anyone help me?



> contextify@0.1.13 install /usr/local/lib/node_modules/http://ift.tt/1oo5iT5
> node-gyp rebuild

npm http GET http://ift.tt/Zu2vrL
npm http GET http://ift.tt/Zu2vbx
npm http 304 http://ift.tt/Zu2vbx
npm http 304 http://ift.tt/Zu2vrL
gyp: Call to 'node -e "require('nan')"' returned exit status 1. while trying to load binding.gyp
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.js:431:16)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:797:12)
gyp ERR! System Linux 3.13.0-32-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/http://ift.tt/1oo5iT5
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! Error: ENOENT, chown '/usr/local/lib/node_modules/http://ift.tt/1vJmVmd'
npm ERR! If you need help, you may report this log at:
npm ERR! <http://ift.tt/wnQOXn;
npm ERR! or email it to:
npm ERR! <npm-@googlegroups.com>
...

Aucun commentaire:

Enregistrer un commentaire