Here is the thing. My configuration is Ubuntu 13.04, Node.js v0.10.5 and NPM version 1.2.18.
I am trying to install node.js module \"shoe\" and I got this error:
I simply upgraded my node version (from 0.4.4 into 0.6.2), problem was resolved.
It's actually rbytes that's causing the issue.
To make it even more complex: rbytes
isn't a direct dependency for shoe
, but for sockjs
. And looking at the code, that should function without rbytes
too.
Since shoe declares is as an optional dependency, shoe
does get installed:
npm WARN optional dep failed, continuing rbytes@0.0.2
^^^^^^^^ ^^^^^^^^^^
So you should just be able to use it regardless of the warning.
node-waf
has been replaced by node-gyp
Install node-gyp using:
sudo npm install -g node-gyp
Note: To build with node-gyp the configuration file binding.gyp
is required.
Example:
{
"targets": [
{
"target_name": "binding",
"sources": [ "src/binding.cc" ]
}
]
}
I haven't had luck getting node-waf on my machine, so I decided to fork the thing and migrate it to node-gyp so that it works.
My fork is at https://github.com/eddydas/node-sleep
To get it work, first make sure you have node-gyp by
$ npm install node-gyp
Then, clone the entire project from GitHub (either by ZIP or Git, it's up to you) and install from it.
$ cd ~
$ wget "https://codeload.github.com/eddydas/node-sleep/zip/master"
$ unzip master
$ cd YOUR_NODE_JS_PROJECT_FOLDER
$ npm install ~/node-sleep-master
I tried my best to make the thing work. If it doesn't go smooth, please feel free to let me know. Hope it helps!