Skip to content

Instantly share code, notes, and snippets.

:$ sudo npm install -g socket.io
npm http GET https://registry.npmjs.org/socket.io
npm http 304 https://registry.npmjs.org/socket.io
npm http GET https://registry.npmjs.org/redis/0.7.3
npm http GET https://registry.npmjs.org/policyfile/0.0.4
npm http GET https://registry.npmjs.org/base64id/0.1.0
npm http GET https://registry.npmjs.org/socket.io-client/0.9.11
npm http 304 https://registry.npmjs.org/redis/0.7.3
npm http 304 https://registry.npmjs.org/base64id/0.1.0
npm http 304 https://registry.npmjs.org/policyfile/0.0.4
> ws@0.4.25 install /usr/local/lib/node_modules/socket.io/node_modules/socket.io-client/node_modules/ws
> (node-gyp rebuild 2> builderror.log) || (exit 0)
var request = require('request'),
async = require('async'),
kue = require('kue'),
jobs = kue.createQueue();
function main (job, done) {
async.series(
[function (callback) {
+ (node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit.
+ Trace
+ at Socket.EventEmitter.addListener (events.js:175:15)
+ at Socket.EventEmitter.once (events.js:196:8)
+ at ClientRequest.<anonymous> (/root/nodecrawler/node_modules/request/main.js:521:27)
+ at ClientRequest.g (events.js:192:14)
+ at ClientRequest.EventEmitter.emit (events.js:96:17)
+ at HTTPParser.parserOnIncomingClient [as onIncoming] (http.js:1527:7)
+ at HTTPParser.parserOnHeadersComplete [as onHeadersComplete] (http.js:111:23)
+ at Socket.socketOnData [as ondata] (http.js:1430:20)
# ~/.profile: executed by Bourne-compatible login shells.
if [ "$BASH" ]; then
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
fi
mesg n
Package: nodejs
Priority: extra
Section: universe/web
Installed-Size: 2331
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
Original-Maintainer: Debian Javascript Maintainers <pkg-javascript-devel@lists.alioth.debian.org>
Architecture: amd64
Version: 0.6.12~dfsg1-1ubuntu1
Depends: libc-ares2 (>= 1.7.3), libc6 (>= 2.14), libev4 (>= 1:4.04), libgcc1 (>= 1:4.1.1), libssl1.0.0 (>= 1.0.1), libstdc++6 (>= 4.1.1), libv8-3.7.12.22, zlib1g (>= 1:1.1.4)
Conflicts: node
root@master:~/npm# sudo apt-get install python-software-properties python g++ make
Reading package lists... Done
Building dependency tree
Reading state information... Done
g++ is already the newest version.
python is already the newest version.
make is already the newest version.
python-software-properties is already the newest version.
The following packages were automatically installed and are no longer required:
node-node-uuid libicu48 libv8-3.7.12.22 libev4 libv8-dev libc-ares2 libev-dev libc-ares-dev
/root/nodecrawler/node_modules/dnode/node_modules/weak/node_modules/bindings/bindings.js:79
throw e
^
Error: /root/nodecrawler/node_modules/dnode/node_modules/weak/build/Release/weakref.node: invalid ELF header
at Object.Module._extensions..node (module.js:485:11)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:362:17)
at require (module.js:378:17)
root@master:~/node-v0.8.18# make
python tools/gyp_node -f make
make -C out BUILDTYPE=Release V=1
make[1]: Entering directory `/root/node-v0.8.18/out'
cc '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DHTTP_PARSER_STRICT=0' '-DNDEBUG' -I../deps/http_parser -Wall -pthread -m64 -O2 -fno-strict-aliasing -fno-tree-vrp -MMD -MF /root/node-v0.8.18/out/Release/.deps//root/node-v0.8.18/out/Release/obj.target/http_parser/deps/http_parser/http_parser.o.d.raw -c -o /root/node-v0.8.18/out/Release/obj.target/http_parser/deps/http_parser/http_parser.o ../deps/http_parser/http_parser.c
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Cannot set property 'path' of undefined
at /root/nodecrawler/node_modules/dnode/node_modules/weak/lib/weak.js:8:24
at Array.forEach (native)
at Object.<anonymous> (/root/nodecrawler/node_modules/dnode/node_modules/weak/lib/weak.js:7:23)
at Module._compile (module.js:432:26)
at Object..js (module.js:450:10)
at Module.load (module.js:351:31)