GithubHelp home page GithubHelp logo

webtorrent / webtorrent-hybrid Goto Github PK

View Code? Open in Web Editor NEW
519.0 26.0 98.0 160 KB

WebTorrent (with WebRTC support in Node.js)

Home Page: https://webtorrent.io

License: MIT License

JavaScript 54.07% Dockerfile 45.93%
webtorrent javascript nodejs browser torrent bittorrent hybrid webrtc

webtorrent-hybrid's Introduction

webtorrent-hybrid ci npm downloads javascript style guide

Streaming torrent client (with WebRTC support in Node.js)

In node.js, the webtorrent package only connects to normal TCP/UDP peers, not WebRTC peers. If you want to connect to all types of peers, including WebRTC peers, from node.js, you need to use this package (webtorrent-hybrid).

Install

To install WebTorrent:

npm install webtorrent-hybrid

To install a webtorrent-hybrid command line program, run:

npm install webtorrent-hybrid -g

Usage

webtorrent-hybrid has the same command line interface (CLI) and module API as webtorrent. Just import WebTorrent from 'webtorrent-hybrid' instead of import WebTorrent from 'webtorrent'.

See the WebTorrent docs.

License

MIT. Copyright (c) Feross Aboukhadijeh and WebTorrent, LLC.

webtorrent-hybrid's People

Contributors

alxhotel avatar autarc avatar diegorbaquero avatar feross avatar gdborton avatar gentlerainsky avatar greenkeeper[bot] avatar greenkeeperio-bot avatar hgghyxo avatar mappum avatar renovate-bot avatar renovate[bot] avatar rom1504 avatar semantic-release-bot avatar stiveknx avatar surprisetalk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

webtorrent-hybrid's Issues

Crash

After letting webtorrent-hybrid seed for a while I get :

*** Error in `WebTorrent': double free or corruption (fasttop): 0x00007f7b20959d60 ***
Abandon

(and then the program exits)

Edit: Now I got a segfault instead (which is basically the same pb I bet)

The stackcall when running it in gdb :

*** Error in `WebTorrent': double free or corruption (fasttop): 0x00007fff70080c10 ***

Program received signal SIGABRT, Aborted.
0x00007ffff6c1d107 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
56      ../nptl/sysdeps/unix/sysv/linux/raise.c: Aucun fichier ou dossier de ce type.
(gdb) bt
#0  0x00007ffff6c1d107 in __GI_raise (sig=sig@entry=6) at ../nptl/sysdeps/unix/sysv/linux/raise.c:56
#1  0x00007ffff6c1e4e8 in __GI_abort () at abort.c:89
#2  0x00007ffff6c5b204 in __libc_message (do_abort=do_abort@entry=1, fmt=fmt@entry=0x7ffff6d4dfe0 "*** Error in `%s': %s: 0x%s ***\n") at ../sysdeps/posix/libc_fatal.c:175
#3  0x00007ffff6c609de in malloc_printerr (action=1, str=0x7ffff6d4e1c8 "double free or corruption (fasttop)", ptr=<optimized out>) at malloc.c:4996
#4  0x00007ffff6c616e6 in _int_free (av=<optimized out>, p=<optimized out>, have_lock=0) at malloc.c:3840
#5  0x000000000063d20e in v8::internal::GlobalHandles::PostGarbageCollectionProcessing(v8::internal::GarbageCollector) ()
#6  0x00000000006591ce in v8::internal::Heap::PerformGarbageCollection(v8::internal::GarbageCollector, v8::internal::GCTracer*) ()
#7  0x0000000000659774 in v8::internal::Heap::CollectGarbage(v8::internal::AllocationSpace, v8::internal::GarbageCollector, char const*, char const*) ()
#8  0x0000000000659a8f in v8::internal::Heap::CollectAllGarbage(int, char const*) ()
#9  0x000000000061d6c9 in v8::internal::Execution::HandleStackGuardInterrupt(v8::internal::Isolate*) ()

how to shut down correctly?

I'm having trouble getting webtorrent-hybrid to shut down elegantly. As I reckon other people might run into this too I'm asking it here (':


Given a server created as:

const webtorrent = require('webtorrent-hybrid')
const torrentServer = webtorrent()
torrentServer.on('error', console.error)

I'm trying to shut it down by doing:

setTimeout(function () {
  torrentServer.destroy()
}, 500)

In my case the server isn't shut down. Running why-is-node-running logs the following open handles:

❯ ss instrument why                                                                   <<<
probing program /Users/yw/src/tc/retail-digital-signage
kill -SIGUSR1 11080 for logging
There are 7 known handle(s) keeping the process running and 0 unknown
Known handles:

# TTY
/Users/yw/src/tc/retail-digital-signage/node_modules/why-is-node-running/cli.js:7 - console.log('probing program', prog)

# TTY
/Users/yw/src/tc/retail-digital-signage/node_modules/why-is-node-running/cli.js:7 - console.log('probing program', prog)

# Process
internal/child_process.js:167
/Users/yw/src/tc/retail-digital-signage/node_modules/webtorrent-hybrid/node_modules/electron-webrtc/node_modules/electron-eval/index.js:21 - this.child = spawn(electron, [ daemonMain ])
/Users/yw/src/tc/retail-digital-signage/node_modules/webtorrent-hybrid/node_modules/electron-webrtc/node_modules/electron-eval/index.js:10 - return new Daemon(opts)
/Users/yw/src/tc/retail-digital-signage/node_modules/webtorrent-hybrid/node_modules/electron-webrtc/index.js:5                             - var daemon = electron()
/Users/yw/src/tc/retail-digital-signage/node_modules/webtorrent-hybrid/lib/global.js:2                                                     - var wrtc = require('electron-webrtc')()

# Pipe
internal/child_process.js:773
internal/child_process.js:748
internal/child_process.js:263
/Users/yw/src/tc/retail-digital-signage/node_modules/webtorrent-hybrid/node_modules/electron-webrtc/node_modules/electron-eval/index.js:21 - this.child = spawn(electron, [ daemonMain ])
/Users/yw/src/tc/retail-digital-signage/node_modules/webtorrent-hybrid/node_modules/electron-webrtc/node_modules/electron-eval/index.js:10 - return new Daemon(opts)
/Users/yw/src/tc/retail-digital-signage/node_modules/webtorrent-hybrid/node_modules/electron-webrtc/index.js:5                             - var daemon = electron()
/Users/yw/src/tc/retail-digital-signage/node_modules/webtorrent-hybrid/lib/global.js:2                                                     - var wrtc = require('electron-webrtc')()

# Pipe
internal/child_process.js:773
internal/child_process.js:748
internal/child_process.js:263
/Users/yw/src/tc/retail-digital-signage/node_modules/webtorrent-hybrid/node_modules/electron-webrtc/node_modules/electron-eval/index.js:21 - this.child = spawn(electron, [ daemonMain ])
/Users/yw/src/tc/retail-digital-signage/node_modules/webtorrent-hybrid/node_modules/electron-webrtc/node_modules/electron-eval/index.js:10 - return new Daemon(opts)
/Users/yw/src/tc/retail-digital-signage/node_modules/webtorrent-hybrid/node_modules/electron-webrtc/index.js:5                             - var daemon = electron()
/Users/yw/src/tc/retail-digital-signage/node_modules/webtorrent-hybrid/lib/global.js:2                                                     - var wrtc = require('electron-webrtc')()

# Pipe
internal/child_process.js:773
internal/child_process.js:748
internal/child_process.js:263
/Users/yw/src/tc/retail-digital-signage/node_modules/webtorrent-hybrid/node_modules/electron-webrtc/node_modules/electron-eval/index.js:21 - this.child = spawn(electron, [ daemonMain ])
/Users/yw/src/tc/retail-digital-signage/node_modules/webtorrent-hybrid/node_modules/electron-webrtc/node_modules/electron-eval/index.js:10 - return new Daemon(opts)
/Users/yw/src/tc/retail-digital-signage/node_modules/webtorrent-hybrid/node_modules/electron-webrtc/index.js:5                             - var daemon = electron()
/Users/yw/src/tc/retail-digital-signage/node_modules/webtorrent-hybrid/lib/global.js:2                                                     - var wrtc = require('electron-webrtc')()

# Timer
/Users/yw/src/tc/retail-digital-signage/node_modules/webtorrent-hybrid/node_modules/electron-webrtc/node_modules/electron-eval/index.js:30 - this.keepaliveInterval = setInterval(this.keepalive.bind(this), opts.timeout / 2)
/Users/yw/src/tc/retail-digital-signage/node_modules/webtorrent-hybrid/node_modules/electron-webrtc/node_modules/electron-eval/index.js:10 - return new Daemon(opts)
/Users/yw/src/tc/retail-digital-signage/node_modules/webtorrent-hybrid/node_modules/electron-webrtc/index.js:5                             - var daemon = electron()
/Users/yw/src/tc/retail-digital-signage/node_modules/webtorrent-hybrid/lib/global.js:2                                                     - var wrtc = require('electron-webrtc')()

Which makes it appear as if the electron child process isn't shut down correctly. Could you perhaps point me in the right direction on how to fix this? Heaps thanks!

Xvfb should not listen to outside connections

Currently when you run webtorrent-hybrid, it uses a headless X server to run Electron. It looks like that server, Xvfb, accepts connections from anywhere!

$ sudo netstat -tnlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      5052/nginx      
tcp        0      0 127.0.0.1:28017         0.0.0.0:*               LISTEN      2962/mongod     
tcp        0      0 0.0.0.0:6104            0.0.0.0:*               LISTEN      6987/Xvfb       
tcp        0      0 0.0.0.0:6105            0.0.0.0:*               LISTEN      7187/Xvfb       
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      3183/sendmail: MTA:
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN      5052/nginx      
tcp        0      0 0.0.0.0:222             0.0.0.0:*               LISTEN      27757/sshd      
tcp        0      0 127.0.0.1:27017         0.0.0.0:*               LISTEN      2962/mongod     
tcp        0      0 127.0.0.1:587           0.0.0.0:*               LISTEN      3183/sendmail: MTA:
tcp6       0      0 :::46479                :::*                    LISTEN      7178/WebTorrent 
tcp6       0      0 :::6104                 :::*                    LISTEN      6987/Xvfb       
tcp6       0      0 :::6105                 :::*                    LISTEN      7187/Xvfb       
tcp6       0      0 :::222                  :::*                    LISTEN      27757/sshd      
tcp6       0      0 :::8000                 :::*                    LISTEN      6978/WebTorrent 
tcp6       0      0 :::44359                :::*                    LISTEN      7178/WebTorrent 
tcp6       0      0 :::37357                :::*                    LISTEN      6978/WebTorrent 

...it should probably bind localhost instead of 0.0.0.0

Cannot add multiple torrents (Error: write EPIPE)

node version : node 6.7.0 & 7.1.0
webtorrent-hybrid version : 1.0.5
os : debian jessie arm

Getting the following error when trying to add multiple torrent files.

xvfb-run node index.js

events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: write EPIPE
    at exports._errnoException (util.js:1036:11)
    at WriteWrap.afterWrite (net.js:794:14)

code to reproduce

var WebTorrent = require('webtorrent-hybrid');
var client = new WebTorrent({
  maxConns: 200,        // Max number of connections per torrent (default=55)
  webSeeds: false        // Enable BEP19 web seeds (default=true)
})

var torrentId = 'http://cdimage.debian.org/debian-cd/8.6.0/arm64/bt-dvd/debian-8.6.0-arm64-DVD-1.iso.torrent'
var torrentId2 = 'http://cdimage.debian.org/debian-cd/8.6.0/multi-arch/bt-dvd/debian-8.6.0-i386-amd64-source-DVD-1.iso.torrent'
var torrentId3 = 'https://webtorrent.io/torrents/sintel.torrent'

client.add(torrentId, {path: "/mnt/test/"}, function (torrent) {
});
client.add(torrentId2, {path: "/mnt/test/"}, function (torrent) {
});
client.add(torrentId3, {path: "/mnt/test/"}, function (torrent) {
});

Webtorrent-hybrid crashes when a peer disconnects from a torrent.

OS: UBUNTU 16.04

This is a torrent that I was seeding on my computer using the Webtorrent-hybrid commandline. I then opened Instant.io and streamed it without problems.

However, as soon as I closed the tab at Instant.io ... the torrent crashed on my computer!

// TERMINAL LOG:

sudo webtorrent-hybrid seed THE-PIRATE-BAY.mp4

Downloading: THE-PIRATE-BAY.mp4
Info hash: 05d525d2adf2fe6c869fc0381186cc1788d0bc58
Speed: 0 B/s Downloaded: 311 MB/311 MB Uploaded: 3.3 MB
Running time: 52s Time remaining: a few seconds Peers: 0/1

0% 192.168.20.104:55105 0 B 0 B/s 767 KB/s

// INSTANT.io TAB GETS CLOSED ...

UNEXPECTED ERROR: If this is a bug in WebTorrent, report it!
OPEN AN ISSUE: https://github.com/feross/webtorrent/issues

DEBUG INFO: webtorrent-cli 1.6.0, webtorrent 0.97.2, node v4.2.6, linux x64, exit 1
events.js:141
throw er; // Unhandled 'error' event
^

Error: Error evaluating "
var pc = conns["1o"]
var dc = pc.dataChannels[1]

    if (dc.readyState === 'open') {
      var data = "AABACQcAAAANAAGAAA=="
      data = base64ToArrayBuffer(data)
      dc.send(data)
    }
    dc.bufferedAmount
  " in "window": Failed to execute 'send' on 'RTCDataChannel': Could not send data
at Daemon.<anonymous> (/usr/local/lib/node_modules/webtorrent-hybrid/node_modules/electron-eval/lib/index.js:81:21)
at Daemon.g (events.js:260:16)
at emitOne (events.js:77:13)
at Daemon.emit (events.js:169:7)
at ChildProcess.<anonymous> (/usr/local/lib/node_modules/webtorrent-hybrid/node_modules/electron-eval/lib/index.js:186:27)
at emitOne (events.js:77:13)
at ChildProcess.emit (events.js:169:7)
at DestroyableTransform.<anonymous> (/usr/local/lib/node_modules/webtorrent-hybrid/node_modules/electron-eval/lib/index.js:219:29)
at emitOne (events.js:77:13)
at DestroyableTransform.emit (events.js:169:7)

instant.io unable to download torrent seeded by webtorrent-hybrid

Hi Feross
my app is going places but I ran into two issues. One is related to this package. I use it on an digital-ocean ubuntu node express server to seed some files. Which works fine when I want to download the torrent via the webtorrent package in an electron environment. But when the only seed is the webtorrent-hybrid ubuntu server and I drop the magnetURI into instant.io nothing is found. Once I drop the same magnet into my electron app, it finds the torrent, downloads, seeds and THEN the instant.io app finds the torrent and downloads it. I assume the problem is that the server doesn't provide webRTC connections and instant.io accepts only those, which are provided once my electron app seeds.

I have downloaded xvfb and installed it via apt-get onto my server and do the whole node routine when the server launches.

var Xvfb = require('xvfb')
var xvfb = new Xvfb()
xvfb.startSync()
var express = require('express')
var WebTorrent = require('webtorrent-hybrid');

client.seed(file.localDir, function onSeed(torrent){
    db.update({_id: file._id}, {$set: {magnetURI: torrent.magnetURI}}, {}, function(err, updates) {
      if(err){console.log(err); throw new Error}
      console.log(updates)
    })
 })

Electron starts regardless of if a client is created

The following program is expected to terminate, but it does not:

var WebTorrent = require("webtorrent-hybrid");

console.log("foo");

However, the following program does terminate immediately:

var WebTorrent = require("webtorrent");

console.log("foo");

This is because electron is started regardless of if a webtorrent client is created. Perhaps it could be lazy-initialized?

Looks like electron-eval is failing

Hi,

I am trying to make webtorrent-hybrid work on a server but whatever I do I have this error. What is more frustrating is that a couple of days ago it was working but then I erase everything for a fresh install...

Here the error :

UNEXPECTED ERROR: If this is a bug in WebTorrent, report it!
OPEN AN ISSUE: https://github.com/feross/webtorrent/issues

DEBUG INFO: webtorrent-cli 1.5.0, webtorrent 0.96.4, node v4.4.5, linux x64, exit 1
events.js:141
      throw er; // Unhandled 'error' event
      ^

Error: electron-eval error: Electron process exited with code 0.
Stderr:
Xlib:  extension "RANDR" missing on display ":100".
Xlib:  extension "RANDR" missing on display ":100".


    at ChildProcess.<anonymous> (/usr/lib/node_modules/webtorrent-hybrid/node_modules/electron-webrtc/node_modules/electron-eval/lib/index.js:145:30)
    at emitTwo (events.js:87:13)
    at ChildProcess.emit (events.js:172:7)
    at maybeClose (internal/child_process.js:827:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)

I have install Xvfb and its dependencies. I also have run the prepareHeadless script.

Trouble installing on Ubuntu Server 14.04.2 LTS

Hi Feros,

First of all thank you for working on this new technology, we want to support you all the way, first of all by testing out.

I am new to linux and I have just installed a ubuntu server but I am having issues installing webtorrent-hybrid, this is what appears to go wrong in the log while doing "npm install webtorrent-hybrid":

npm WARN engine [email protected]: wanted: {"node":"0.6"} (current: {"node":"v0.10.25","npm":"1.3.10"})
npm ERR! fetch failed https://registry.npmjs.org/express-state/-/express-state-1.0.3.tgz
npm http 200 https://registry.npmjs.org/mime-types
/bin/sh: 1: node: not found
gyp: Call to 'node -e "require('nan')"' returned exit status 127. 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.16.0-30-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/torrent-discovery/node_modules/bittorrent-tracker/node_modules/ws/node_modules/utf-8-validate
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm http 200 https://registry.npmjs.org/node-uuid
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 http 200 https://registry.npmjs.org/json-stringify-safe
npm http GET https://registry.npmjs.org/mime-types/-/mime-types-2.0.12.tgz
npm http 200 https://registry.npmjs.org/tunnel-agent
npm http 200 https://registry.npmjs.org/form-data
npm http GET https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.3.tgz
npm http GET https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz
npm WARN optional dep failed, continuing [email protected]
npm http GET https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.0.tgz
npm http 200 https://registry.npmjs.org/qs
npm http 200 https://registry.npmjs.org/oauth-sign
npm http GET https://registry.npmjs.org/form-data/-/form-data-0.2.0.tgz
npm http 200 https://registry.npmjs.org/http-signature
npm http 200 https://registry.npmjs.org/tough-cookie
npm http 200 https://registry.npmjs.org/aws-sign2
npm http GET https://registry.npmjs.org/qs/-/qs-3.1.0.tgz
npm http GET https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.0.tgz
npm http 200 https://registry.npmjs.org/stringstream
npm http GET https://registry.npmjs.org/http-signature/-/http-signature-0.11.0.tgz
npm http 200 https://registry.npmjs.org/combined-stream
npm http GET https://registry.npmjs.org/tough-cookie/-/tough-cookie-1.2.0.tgz
npm http 200 https://registry.npmjs.org/is-relative/-/is-relative-0.1.3.tgz
npm http 200 https://registry.npmjs.org/isstream
npm http GET https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.5.0.tgz
npm http GET https://registry.npmjs.org/stringstream/-/stringstream-0.0.4.tgz
npm http GET https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.3.tgz
npm http 200 https://registry.npmjs.org/mime-types/-/mime-types-2.0.12.tgz
npm http 200 https://registry.npmjs.org/form-data/-/form-data-0.2.0.tgz
npm http 200 https://registry.npmjs.org/har-validator
npm http 200 https://registry.npmjs.org/hawk
npm http GET https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz
npm http 200 https://registry.npmjs.org/bl
npm http 200 https://registry.npmjs.org/qs/-/qs-3.1.0.tgz
npm http 200 https://registry.npmjs.org/forever-agent
npm http 200 https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.8.0.tgz
npm http 200 https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.0.tgz
npm http 200 https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz
npm http GET https://registry.npmjs.org/har-validator/-/har-validator-1.7.1.tgz
npm http 200 https://registry.npmjs.org/http-signature/-/http-signature-0.11.0.tgz
npm http GET https://registry.npmjs.org/hawk/-/hawk-2.3.1.tgz
npm http GET https://registry.npmjs.org/bl/-/bl-0.9.4.tgz
npm http GET https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz
npm http 200 https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.5.0.tgz
npm http 200 https://registry.npmjs.org/node-uuid/-/node-uuid-1.4.3.tgz
npm http 200 https://registry.npmjs.org/stringstream/-/stringstream-0.0.4.tgz
npm http 200 https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.3.tgz

> [email protected] install /home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/torrent-discovery/node_modules/bittorrent-tracker/node_modules/ws/node_modules/bufferutil
> node-gyp rebuild

npm http 200 https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz
npm http 200 https://registry.npmjs.org/tough-cookie/-/tough-cookie-1.2.0.tgz
npm http 200 https://registry.npmjs.org/har-validator/-/har-validator-1.7.1.tgz
npm http 200 https://registry.npmjs.org/bl/-/bl-0.9.4.tgz
npm http 200 https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz
npm http 200 https://registry.npmjs.org/hawk/-/hawk-2.3.1.tgz
/bin/sh: 1: node: not found
gyp: Call to 'node -e "require('nan')"' returned exit status 127. 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.16.0-30-generic
gyp ERR! command "nodejs" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/torrent-discovery/node_modules/bittorrent-tracker/node_modules/ws/node_modules/bufferutil
gyp ERR! node -v v0.10.25
gyp ERR! node-gyp -v v0.10.10
gyp ERR! not ok
npm http GET https://registry.npmjs.org/wordwrap
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 http GET https://registry.npmjs.org/minimist
npm http 200 https://registry.npmjs.org/block-stream
npm WARN optional dep failed, continuing [email protected]
npm http GET https://registry.npmjs.org/block-stream/-/block-stream-0.0.8.tgz
npm http 200 https://registry.npmjs.org/caseless
npm http 200 https://registry.npmjs.org/wordwrap
npm http 304 https://registry.npmjs.org/minimist
npm http GET https://registry.npmjs.org/caseless/-/caseless-0.10.0.tgz
npm http GET https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz
npm http GET https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz
npm http 200 https://registry.npmjs.org/block-stream/-/block-stream-0.0.8.tgz
npm http 200 https://registry.npmjs.org/caseless/-/caseless-0.10.0.tgz
npm http 200 https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.3.tgz
npm http 200 https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz
npm http GET https://registry.npmjs.org/delegates
npm http GET https://registry.npmjs.org/readable-stream
npm http 200 https://registry.npmjs.org/delegates
npm http 304 https://registry.npmjs.org/readable-stream
npm http GET https://registry.npmjs.org/lodash.padright
npm http GET https://registry.npmjs.org/has-unicode
npm http GET https://registry.npmjs.org/lodash.pad
npm http GET https://registry.npmjs.org/lodash.padleft
npm http GET https://registry.npmjs.org/delegates/-/delegates-0.1.0.tgz
npm http GET https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.13.tgz
npm http 200 https://registry.npmjs.org/lodash.pad
npm http 200 https://registry.npmjs.org/lodash.padright
npm http 200 https://registry.npmjs.org/has-unicode
npm http 200 https://registry.npmjs.org/delegates/-/delegates-0.1.0.tgz
npm http GET https://registry.npmjs.org/lodash.pad/-/lodash.pad-3.1.0.tgz
npm http 200 https://registry.npmjs.org/lodash.padleft
npm http GET https://registry.npmjs.org/lodash.padright/-/lodash.padright-3.1.1.tgz
npm http GET https://registry.npmjs.org/has-unicode/-/has-unicode-1.0.0.tgz
npm http 200 https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.13.tgz
npm http GET https://registry.npmjs.org/lodash.padleft/-/lodash.padleft-3.1.1.tgz
npm http 200 https://registry.npmjs.org/has-unicode/-/has-unicode-1.0.0.tgz
npm http 200 https://registry.npmjs.org/lodash.padright/-/lodash.padright-3.1.1.tgz
npm http 200 https://registry.npmjs.org/lodash.pad/-/lodash.pad-3.1.0.tgz
npm http 200 https://registry.npmjs.org/lodash.padleft/-/lodash.padleft-3.1.1.tgz
npm http GET https://registry.npmjs.org/lodash._basetostring
npm http GET https://registry.npmjs.org/lodash._createpadding
npm http 200 https://registry.npmjs.org/lodash._basetostring
npm http 200 https://registry.npmjs.org/lodash._createpadding
npm http GET https://registry.npmjs.org/lodash._basetostring/-/lodash._basetostring-3.0.0.tgz
npm http GET https://registry.npmjs.org/lodash._createpadding/-/lodash._createpadding-3.6.0.tgz
npm http 200 https://registry.npmjs.org/lodash._createpadding/-/lodash._createpadding-3.6.0.tgz
npm http 200 https://registry.npmjs.org/lodash._basetostring/-/lodash._basetostring-3.0.0.tgz
npm http GET https://registry.npmjs.org/lodash.repeat
npm http 200 https://registry.npmjs.org/lodash.repeat
npm http GET https://registry.npmjs.org/lodash.repeat/-/lodash.repeat-3.0.0.tgz
npm http GET https://registry.npmjs.org/core-util-is
npm http GET https://registry.npmjs.org/isarray/0.0.1
npm http GET https://registry.npmjs.org/string_decoder
npm http GET https://registry.npmjs.org/dtrace-provider
npm http GET https://registry.npmjs.org/mv
npm http GET https://registry.npmjs.org/safe-json-stringify
npm http 200 https://registry.npmjs.org/lodash.repeat/-/lodash.repeat-3.0.0.tgz
npm http 304 https://registry.npmjs.org/isarray/0.0.1
npm http 304 https://registry.npmjs.org/string_decoder
npm http 304 https://registry.npmjs.org/core-util-is
npm http 200 https://registry.npmjs.org/safe-json-stringify
npm http GET https://registry.npmjs.org/safe-json-stringify/-/safe-json-stringify-1.0.3.tgz
npm http 200 https://registry.npmjs.org/safe-json-stringify/-/safe-json-stringify-1.0.3.tgz
npm http 200 https://registry.npmjs.org/mv
npm http GET https://registry.npmjs.org/mv/-/mv-2.0.3.tgz
npm http 200 https://registry.npmjs.org/dtrace-provider
npm http GET https://registry.npmjs.org/dtrace-provider/-/dtrace-provider-0.4.0.tgz
npm http 200 https://registry.npmjs.org/mv/-/mv-2.0.3.tgz
npm http 200 https://registry.npmjs.org/dtrace-provider/-/dtrace-provider-0.4.0.tgz
npm http GET https://registry.npmjs.org/colour
npm http GET https://registry.npmjs.org/optjs
npm http GET https://registry.npmjs.org/mime-db
npm http GET https://registry.npmjs.org/delayed-stream
npm http GET https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/combined-stream/-/combined-stream-0.0.7.tgz
npm http 200 https://registry.npmjs.org/delayed-stream
npm http 200 https://registry.npmjs.org/combined-stream/-/combined-stream-0.0.7.tgz
npm http GET https://registry.npmjs.org/assert-plus
npm http GET https://registry.npmjs.org/asn1/0.1.11
npm http GET https://registry.npmjs.org/ctype/0.5.3
npm http GET https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz
npm http 200 https://registry.npmjs.org/mime-db
npm http GET https://registry.npmjs.org/bluebird
npm http GET https://registry.npmjs.org/commander
npm http GET https://registry.npmjs.org/is-my-json-valid
npm http GET https://registry.npmjs.org/chalk
npm http GET https://registry.npmjs.org/mime-db/-/mime-db-1.10.0.tgz
npm http 200 https://registry.npmjs.org/asn1/0.1.11
npm http 200 https://registry.npmjs.org/async
npm http GET https://registry.npmjs.org/asn1/-/asn1-0.1.11.tgz
npm http 200 https://registry.npmjs.org/ctype/0.5.3
npm http GET https://registry.npmjs.org/async/-/async-0.9.2.tgz
npm http GET https://registry.npmjs.org/ctype/-/ctype-0.5.3.tgz
npm http 200 https://registry.npmjs.org/assert-plus
npm http GET https://registry.npmjs.org/assert-plus/-/assert-plus-0.1.5.tgz
npm http 200 https://registry.npmjs.org/optjs
npm http GET https://registry.npmjs.org/optjs/-/optjs-3.2.1-boom.tgz
npm http 200 https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz
npm http 304 https://registry.npmjs.org/chalk
npm http 200 https://registry.npmjs.org/commander
npm http 200 https://registry.npmjs.org/assert-plus/-/assert-plus-0.1.5.tgz
npm http 200 https://registry.npmjs.org/mime-db/-/mime-db-1.10.0.tgz
npm http 200 https://registry.npmjs.org/is-my-json-valid
npm http GET https://registry.npmjs.org/commander/-/commander-2.8.1.tgz
npm http 200 https://registry.npmjs.org/bluebird
npm http 200 https://registry.npmjs.org/optjs/-/optjs-3.2.1-boom.tgz
npm http 200 https://registry.npmjs.org/asn1/-/asn1-0.1.11.tgz
npm http 200 https://registry.npmjs.org/async/-/async-0.9.2.tgz
npm http GET https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.12.0.tgz
npm http 200 https://registry.npmjs.org/ctype/-/ctype-0.5.3.tgz
npm http GET https://registry.npmjs.org/bluebird/-/bluebird-2.9.27.tgz
npm http 200 https://registry.npmjs.org/commander/-/commander-2.8.1.tgz
npm http 200 https://registry.npmjs.org/colour
npm http GET https://registry.npmjs.org/colour/-/colour-0.7.1.tgz
npm http 200 https://registry.npmjs.org/is-my-json-valid/-/is-my-json-valid-2.12.0.tgz
npm http 200 https://registry.npmjs.org/bluebird/-/bluebird-2.9.27.tgz
npm http 200 https://registry.npmjs.org/colour/-/colour-0.7.1.tgz
npm http GET https://registry.npmjs.org/cryptiles
npm http GET https://registry.npmjs.org/sntp
npm http GET https://registry.npmjs.org/hoek
npm http GET https://registry.npmjs.org/boom
npm http 200 https://registry.npmjs.org/boom
npm http 200 https://registry.npmjs.org/cryptiles
npm http GET https://registry.npmjs.org/boom/-/boom-2.7.2.tgz
npm http GET https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.4.tgz
npm http GET https://registry.npmjs.org/delayed-stream/0.0.5
npm http 200 https://registry.npmjs.org/hoek
npm http GET https://registry.npmjs.org/hoek/-/hoek-2.14.0.tgz
npm http 200 https://registry.npmjs.org/cryptiles/-/cryptiles-2.0.4.tgz
npm http 200 https://registry.npmjs.org/boom/-/boom-2.7.2.tgz
npm http 200 https://registry.npmjs.org/delayed-stream/0.0.5
npm http GET https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.5.tgz
npm http 200 https://registry.npmjs.org/hoek/-/hoek-2.14.0.tgz
npm http 200 https://registry.npmjs.org/sntp
npm http 200 https://registry.npmjs.org/delayed-stream/-/delayed-stream-0.0.5.tgz
npm http GET https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz
npm http GET https://registry.npmjs.org/ncp
npm http GET https://registry.npmjs.org/rimraf
npm http 200 https://registry.npmjs.org/sntp/-/sntp-1.0.9.tgz
npm http GET https://registry.npmjs.org/long
npm http GET https://registry.npmjs.org/bufferview
npm http 304 https://registry.npmjs.org/rimraf
npm http GET https://registry.npmjs.org/rimraf/-/rimraf-2.2.8.tgz
npm http 200 https://registry.npmjs.org/ncp
npm http GET https://registry.npmjs.org/ncp/-/ncp-0.6.0.tgz
npm http 200 https://registry.npmjs.org/long
npm http GET https://registry.npmjs.org/long/-/long-2.2.3.tgz
npm http 200 https://registry.npmjs.org/rimraf/-/rimraf-2.2.8.tgz
npm http 200 https://registry.npmjs.org/ncp/-/ncp-0.6.0.tgz
npm http GET https://registry.npmjs.org/nan
npm http 200 https://registry.npmjs.org/long/-/long-2.2.3.tgz
npm http 304 https://registry.npmjs.org/nan
npm http GET https://registry.npmjs.org/nan/-/nan-1.5.3.tgz
npm http 200 https://registry.npmjs.org/nan/-/nan-1.5.3.tgz
npm http 200 https://registry.npmjs.org/bufferview
npm http GET https://registry.npmjs.org/bufferview/-/bufferview-1.0.1.tgz
npm http 200 https://registry.npmjs.org/bufferview/-/bufferview-1.0.1.tgz
npm http GET https://registry.npmjs.org/ansi-styles
npm http GET https://registry.npmjs.org/escape-string-regexp
npm http GET https://registry.npmjs.org/strip-ansi
npm http GET https://registry.npmjs.org/has-ansi
npm http GET https://registry.npmjs.org/supports-color
npm http GET https://registry.npmjs.org/graceful-readlink
npm http 200 https://registry.npmjs.org/escape-string-regexp
npm http GET https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.3.tgz
npm http 200 https://registry.npmjs.org/ansi-styles
npm http 200 https://registry.npmjs.org/strip-ansi
npm http 200 https://registry.npmjs.org/supports-color
npm http 200 https://registry.npmjs.org/has-ansi
npm http 200 https://registry.npmjs.org/graceful-readlink
npm http GET https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.0.1.tgz
npm http GET https://registry.npmjs.org/strip-ansi/-/strip-ansi-2.0.1.tgz
npm http GET https://registry.npmjs.org/supports-color/-/supports-color-1.3.1.tgz
npm http GET https://registry.npmjs.org/has-ansi/-/has-ansi-1.0.3.tgz
npm http GET https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz

> [email protected] install /home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/chromecast-js/node_modules/node-ssdp/node_modules/bunyan/node_modules/dtrace-provider
> node scripts/install.js

sh: 1: node: not found
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 WARN optional dep failed, continuing [email protected]
npm http 200 https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.3.tgz
npm http 200 https://registry.npmjs.org/strip-ansi/-/strip-ansi-2.0.1.tgz
npm http GET https://registry.npmjs.org/jsonpointer
npm http 200 https://registry.npmjs.org/graceful-readlink/-/graceful-readlink-1.0.1.tgz
npm http GET https://registry.npmjs.org/generate-function
npm http GET https://registry.npmjs.org/generate-object-property
npm http 200 https://registry.npmjs.org/has-ansi/-/has-ansi-1.0.3.tgz
npm http 200 https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.0.1.tgz
npm http GET https://registry.npmjs.org/xtend
npm http 200 https://registry.npmjs.org/supports-color/-/supports-color-1.3.1.tgz
npm http 200 https://registry.npmjs.org/generate-object-property
npm http 200 https://registry.npmjs.org/generate-function
npm http 200 https://registry.npmjs.org/jsonpointer
npm http GET https://registry.npmjs.org/generate-object-property/-/generate-object-property-1.2.0.tgz
npm http GET https://registry.npmjs.org/generate-function/-/generate-function-2.0.0.tgz
npm http GET https://registry.npmjs.org/jsonpointer/-/jsonpointer-1.1.0.tgz
npm http 304 https://registry.npmjs.org/xtend
npm http 200 https://registry.npmjs.org/generate-function/-/generate-function-2.0.0.tgz
npm http 200 https://registry.npmjs.org/jsonpointer/-/jsonpointer-1.1.0.tgz
npm http 200 https://registry.npmjs.org/generate-object-property/-/generate-object-property-1.2.0.tgz
npm http GET https://registry.npmjs.org/ansi-regex
npm http GET https://registry.npmjs.org/ansi-regex
npm http GET https://registry.npmjs.org/get-stdin
npm http 304 https://registry.npmjs.org/ansi-regex
npm http 304 https://registry.npmjs.org/get-stdin
npm http 304 https://registry.npmjs.org/ansi-regex
npm http GET https://registry.npmjs.org/is-property
npm http 200 https://registry.npmjs.org/is-property
npm http GET https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz
npm http 200 https://registry.npmjs.org/is-property/-/is-property-1.0.2.tgz
npm http GET https://registry.npmjs.org/localtunnel/1.5.0
npm http GET https://registry.npmjs.org/istanbul
npm http GET https://registry.npmjs.org/through
npm http GET https://registry.npmjs.org/minimatch
npm http GET https://registry.npmjs.org/through/2.3.4
npm http GET https://registry.npmjs.org/object-keys
npm http 304 https://registry.npmjs.org/through
npm http 304 https://registry.npmjs.org/minimatch
npm http 200 https://registry.npmjs.org/localtunnel/1.5.0
npm http GET https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz
npm http 200 https://registry.npmjs.org/object-keys
npm http GET https://registry.npmjs.org/istanbul
npm http GET https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/body-parser
npm http GET https://registry.npmjs.org/archiver
npm http GET https://registry.npmjs.org/ms/0.6.2
npm http GET https://registry.npmjs.org/localtunnel/-/localtunnel-1.5.0.tgz
npm http GET https://registry.npmjs.org/tap-parser
npm http GET https://registry.npmjs.org/object-keys/-/object-keys-0.4.0.tgz
npm http GET https://registry.npmjs.org/array-reduce
npm http GET https://registry.npmjs.org/array-map
npm http 200 https://registry.npmjs.org/through/2.3.4
npm http GET https://registry.npmjs.org/jsonify
npm http GET https://registry.npmjs.org/array-filter
npm http 200 https://registry.npmjs.org/istanbul
npm http GET https://registry.npmjs.org/through/-/through-2.3.4.tgz
npm http 304 https://registry.npmjs.org/ms/0.6.2
npm http GET https://registry.npmjs.org/istanbul/-/istanbul-0.2.16.tgz
npm http 200 https://registry.npmjs.org/archiver
npm http 200 https://registry.npmjs.org/tap-parser
npm http 200 https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz
npm http 200 https://registry.npmjs.org/object-keys/-/object-keys-0.4.0.tgz
npm http 200 https://registry.npmjs.org/localtunnel/-/localtunnel-1.5.0.tgz
npm http 200 https://registry.npmjs.org/array-reduce
npm http 200 https://registry.npmjs.org/array-map
npm http GET https://registry.npmjs.org/archiver/-/archiver-0.10.1.tgz
npm http GET https://registry.npmjs.org/tap-parser/-/tap-parser-0.2.1.tgz
npm http 200 https://registry.npmjs.org/jsonify
npm http 200 https://registry.npmjs.org/array-filter
npm http GET https://registry.npmjs.org/array-reduce/-/array-reduce-0.0.0.tgz
npm http GET https://registry.npmjs.org/array-map/-/array-map-0.0.0.tgz
npm http 200 https://registry.npmjs.org/through/-/through-2.3.4.tgz
npm http GET https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz
npm http GET https://registry.npmjs.org/handlebars/1.0.12
npm http GET https://registry.npmjs.org/walk/2.2.1
npm http GET https://registry.npmjs.org/array-filter/-/array-filter-0.0.1.tgz
npm http 200 https://registry.npmjs.org/istanbul/-/istanbul-0.2.16.tgz
npm http 200 https://registry.npmjs.org/array-map/-/array-map-0.0.0.tgz
npm http GET https://registry.npmjs.org/browserify
npm http GET https://registry.npmjs.org/through2
npm http GET https://registry.npmjs.org/chokidar
npm http 200 https://registry.npmjs.org/jsonify/-/jsonify-0.0.0.tgz
npm http 200 https://registry.npmjs.org/tap-parser/-/tap-parser-0.2.1.tgz
npm http 200 https://registry.npmjs.org/istanbul
npm http 200 https://registry.npmjs.org/array-filter/-/array-filter-0.0.1.tgz
npm http 200 https://registry.npmjs.org/archiver/-/archiver-0.10.1.tgz
npm http 200 https://registry.npmjs.org/body-parser
npm http GET https://registry.npmjs.org/minimist/-/minimist-0.2.0.tgz
npm http 200 https://registry.npmjs.org/array-reduce/-/array-reduce-0.0.0.tgz
npm http GET https://registry.npmjs.org/foreach-shim
npm http GET https://registry.npmjs.org/source-map-cjs
npm http 200 https://registry.npmjs.org/through2
npm http GET https://registry.npmjs.org/body-parser/-/body-parser-1.4.3.tgz
npm http 200 https://registry.npmjs.org/express
npm http GET https://registry.npmjs.org/through2/-/through2-0.5.1.tgz
npm http 200 https://registry.npmjs.org/walk/2.2.1
npm http 200 https://registry.npmjs.org/chokidar
npm http 200 https://registry.npmjs.org/handlebars/1.0.12
npm http GET https://registry.npmjs.org/express/-/express-4.12.4.tgz
npm http GET https://registry.npmjs.org/chokidar/-/chokidar-0.12.6.tgz
npm http GET https://registry.npmjs.org/walk/-/walk-2.2.1.tgz
npm http GET https://registry.npmjs.org/handlebars/-/handlebars-1.0.12.tgz
npm http 200 https://registry.npmjs.org/minimist/-/minimist-0.2.0.tgz
npm http 200 https://registry.npmjs.org/body-parser/-/body-parser-1.4.3.tgz
npm http 200 https://registry.npmjs.org/walk/-/walk-2.2.1.tgz
npm http 200 https://registry.npmjs.org/foreach-shim
npm http GET https://registry.npmjs.org/foreach-shim/-/foreach-shim-0.1.1.tgz
npm http 200 https://registry.npmjs.org/handlebars/-/handlebars-1.0.12.tgz
npm http 200 https://registry.npmjs.org/through2/-/through2-0.5.1.tgz
npm http 200 https://registry.npmjs.org/source-map-cjs
npm http 200 https://registry.npmjs.org/chokidar/-/chokidar-0.12.6.tgz
npm http 200 https://registry.npmjs.org/express/-/express-4.12.4.tgz
npm http GET https://registry.npmjs.org/source-map-cjs/-/source-map-cjs-0.1.32.tgz
npm http GET https://registry.npmjs.org/cookiejar/1.3.0
npm http GET https://registry.npmjs.org/emitter-component/1.0.0
npm http GET https://registry.npmjs.org/methods/0.0.1
npm http GET https://registry.npmjs.org/reduce-component/1.0.1
npm http GET https://registry.npmjs.org/qs/0.6.5
npm http GET https://registry.npmjs.org/formidable/1.0.14
npm http GET https://registry.npmjs.org/mime/1.2.5
npm http GET https://registry.npmjs.org/debug
npm http 200 https://registry.npmjs.org/foreach-shim/-/foreach-shim-0.1.1.tgz
npm http GET https://registry.npmjs.org/cookie/0.1.0
npm http GET https://registry.npmjs.org/range-parser/0.0.4
npm http GET https://registry.npmjs.org/buffer-crc32/0.2.1
npm http GET https://registry.npmjs.org/mkdirp/0.3.5
npm http GET https://registry.npmjs.org/fresh/0.2.0
npm http GET https://registry.npmjs.org/methods/0.1.0
npm http GET https://registry.npmjs.org/send/0.1.4
npm http GET https://registry.npmjs.org/cookie-signature/1.0.1
npm http GET https://registry.npmjs.org/merge-descriptors/0.0.1
npm http GET https://registry.npmjs.org/connect/2.12.0
npm http GET https://registry.npmjs.org/commander/1.3.2
npm http 200 https://registry.npmjs.org/source-map-cjs/-/source-map-cjs-0.1.32.tgz
npm http GET https://registry.npmjs.org/debug
npm http 200 https://registry.npmjs.org/cookiejar/1.3.0
npm http GET https://registry.npmjs.org/cookiejar/-/cookiejar-1.3.0.tgz
npm http 200 https://registry.npmjs.org/methods/0.0.1
npm http 200 https://registry.npmjs.org/reduce-component/1.0.1
npm http 200 https://registry.npmjs.org/emitter-component/1.0.0
npm http 200 https://registry.npmjs.org/qs/0.6.5
npm http GET https://registry.npmjs.org/methods/-/methods-0.0.1.tgz
npm http 304 https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/reduce-component/-/reduce-component-1.0.1.tgz
npm http GET https://registry.npmjs.org/emitter-component/-/emitter-component-1.0.0.tgz
npm http GET https://registry.npmjs.org/qs/-/qs-0.6.5.tgz
npm http 200 https://registry.npmjs.org/cookiejar/-/cookiejar-1.3.0.tgz
npm http GET https://registry.npmjs.org/debug/-/debug-0.7.4.tgz
npm http 200 https://registry.npmjs.org/mime/1.2.5
npm http 200 https://registry.npmjs.org/cookie/0.1.0
npm http GET https://registry.npmjs.org/mime/-/mime-1.2.5.tgz
npm http 200 https://registry.npmjs.org/reduce-component/-/reduce-component-1.0.1.tgz
npm http 200 https://registry.npmjs.org/emitter-component/-/emitter-component-1.0.0.tgz

> [email protected] install /home/gigi/node_modules/webtorrent-hybrid/node_modules/wrtc
> node-pre-gyp install --fallback-to-build

/usr/bin/env: node: No such file or directory
npm http 200 https://registry.npmjs.org/qs/-/qs-0.6.5.tgz
npm http 200 https://registry.npmjs.org/methods/-/methods-0.0.1.tgz
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 http 200 https://registry.npmjs.org/debug/-/debug-0.7.4.tgz
npm http 200 https://registry.npmjs.org/mime/-/mime-1.2.5.tgz
npm http GET https://registry.npmjs.org/cookie/-/cookie-0.1.0.tgz
npm http 200 https://registry.npmjs.org/buffer-crc32/0.2.1
npm http 200 https://registry.npmjs.org/browserify
npm http 200 https://registry.npmjs.org/mkdirp/0.3.5
npm http 200 https://registry.npmjs.org/formidable/1.0.14
npm http 200 https://registry.npmjs.org/cookie/-/cookie-0.1.0.tgz
npm http 200 https://registry.npmjs.org/range-parser/0.0.4
npm http 200 https://registry.npmjs.org/methods/0.1.0
npm http 200 https://registry.npmjs.org/send/0.1.4
npm http GET https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz
npm http GET https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.1.tgz
npm http 200 https://registry.npmjs.org/cookie-signature/1.0.1
npm http GET https://registry.npmjs.org/browserify/-/browserify-8.1.3.tgz
npm http GET https://registry.npmjs.org/range-parser/-/range-parser-0.0.4.tgz
npm http 304 https://registry.npmjs.org/debug
npm http GET https://registry.npmjs.org/formidable/-/formidable-1.0.14.tgz
npm http GET https://registry.npmjs.org/methods/-/methods-0.1.0.tgz
npm http 200 https://registry.npmjs.org/merge-descriptors/0.0.1
npm http GET https://registry.npmjs.org/send/-/send-0.1.4.tgz
npm http 200 https://registry.npmjs.org/commander/1.3.2
npm http 200 https://registry.npmjs.org/connect/2.12.0
npm http 200 https://registry.npmjs.org/fresh/0.2.0
npm http GET https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.1.tgz
npm http 200 https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.1.tgz
npm http 200 https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz
npm http GET https://registry.npmjs.org/commander/-/commander-1.3.2.tgz
npm http GET https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-0.0.1.tgz
npm http 200 https://registry.npmjs.org/methods/-/methods-0.1.0.tgz
npm http 200 https://registry.npmjs.org/browserify/-/browserify-8.1.3.tgz
npm http GET https://registry.npmjs.org/connect/-/connect-2.12.0.tgz
npm http 200 https://registry.npmjs.org/range-parser/-/range-parser-0.0.4.tgz
npm http 200 https://registry.npmjs.org/send/-/send-0.1.4.tgz
npm http GET https://registry.npmjs.org/fresh/-/fresh-0.2.0.tgz
npm http 200 https://registry.npmjs.org/cookie-signature/-/cookie-signature-1.0.1.tgz
npm http 200 https://registry.npmjs.org/commander/-/commander-1.3.2.tgz
npm http 200 https://registry.npmjs.org/merge-descriptors/-/merge-descriptors-0.0.1.tgz
npm http 200 https://registry.npmjs.org/formidable/-/formidable-1.0.14.tgz
npm http 200 https://registry.npmjs.org/fresh/-/fresh-0.2.0.tgz
npm http 200 https://registry.npmjs.org/connect/-/connect-2.12.0.tgz
npm http GET https://registry.npmjs.org/optimist
npm http 304 https://registry.npmjs.org/optimist
npm ERR! Error: ENOENT, lstat '/home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/browserify/test/dedupe-nomap.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.16.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent-hybrid"
npm ERR! cwd /home/gigi
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/browserify/test/dedupe-nomap.js
npm ERR! fstream_path /home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/browserify/test/dedupe-nomap.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/highlight.js/scala.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.16.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent-hybrid"
npm ERR! cwd /home/gigi
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/highlight.js/scala.js
npm ERR! fstream_path /home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/highlight.js/scala.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/xtend/node_modules/object-keys'
npm ERR! error rolling back  [email protected] { [Error: ENOTEMPTY, rmdir '/home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/xtend/node_modules/object-keys']
npm ERR! error rolling back   errno: 53,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   path: '/home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/xtend/node_modules/object-keys' }
npm ERR! weird error 127
npm http GET https://registry.npmjs.org/optimist/-/optimist-0.3.7.tgz
npm ERR! Error: ENOENT, lstat '/home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/char-split/node_modules/through/test/buffering.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.16.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent-hybrid"
npm ERR! cwd /home/gigi
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/char-split/node_modules/through/test/buffering.js
npm ERR! fstream_path /home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/char-split/node_modules/through/test/buffering.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/yamljs/test/libs/jasmine-1.2.0/jasmine.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.16.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent-hybrid"
npm ERR! cwd /home/gigi
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/yamljs/test/libs/jasmine-1.2.0/jasmine.js
npm ERR! fstream_path /home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/yamljs/test/libs/jasmine-1.2.0/jasmine.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, chown '/var/www/tmp/npm-1913-BE0UlMaB/1433067870417-0.7510946402326226/package/component.json'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.16.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent-hybrid"
npm ERR! cwd /home/gigi
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /var/www/tmp/npm-1913-BE0UlMaB/1433067870417-0.7510946402326226/package/component.json
npm ERR! fstream_path /var/www/tmp/npm-1913-BE0UlMaB/1433067870417-0.7510946402326226/package/component.json
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chown
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:305:19
npm ERR! fstream_stack /usr/lib/nodejs/graceful-fs/polyfills.js:133:7
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/var/www/tmp/npm-1913-BE0UlMaB/1433067870445-0.5980419740080833/package/Makefile'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.16.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent-hybrid"
npm ERR! cwd /home/gigi
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /var/www/tmp/npm-1913-BE0UlMaB/1433067870445-0.5980419740080833/package/Makefile
npm ERR! fstream_path /var/www/tmp/npm-1913-BE0UlMaB/1433067870445-0.5980419740080833/package/Makefile
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! tar pack Error reading /var/www/tmp/npm-1913-BE0UlMaB/1433067869620-0.8598088633734733/package
npm ERR! tar pack Error reading /var/www/tmp/npm-1913-BE0UlMaB/1433067869606-0.3155267462134361/package
npm ERR! Error: ENOENT, open '/var/www/tmp/npm-1913-BE0UlMaB/1433067870240-0.5060584705788642/package/package.json'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.16.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent-hybrid"
npm ERR! cwd /home/gigi
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /var/www/tmp/npm-1913-BE0UlMaB/1433067870240-0.5060584705788642/package/package.json
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! Error: ENOENT, lstat '/var/www/tmp/npm-1913-BE0UlMaB/1433067870364-0.2449740704614669/package/Readme.md'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.16.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent-hybrid"
npm ERR! cwd /home/gigi
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /var/www/tmp/npm-1913-BE0UlMaB/1433067870364-0.2449740704614669/package/Readme.md
npm ERR! fstream_path /var/www/tmp/npm-1913-BE0UlMaB/1433067870364-0.2449740704614669/package/Readme.md
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! addLocalDirectory Could not pack "/var/www/tmp/npm-1913-BE0UlMaB/1433067869620-0.8598088633734733/package" to "/var/www/.npm/emitter-component/1.0.0/package.tgz"
npm ERR! addLocalDirectory Could not pack "/var/www/tmp/npm-1913-BE0UlMaB/1433067869606-0.3155267462134361/package" to "/var/www/.npm/reduce-component/1.0.1/package.tgz"
npm ERR! Error: ENOENT, lstat '/var/www/tmp/npm-1913-BE0UlMaB/1433067870435-0.05817977408878505/package/LICENSE'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.16.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent-hybrid"
npm ERR! cwd /home/gigi
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /var/www/tmp/npm-1913-BE0UlMaB/1433067870435-0.05817977408878505/package/LICENSE
npm ERR! fstream_path /var/www/tmp/npm-1913-BE0UlMaB/1433067870435-0.05817977408878505/package/LICENSE
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/var/www/tmp/npm-1913-BE0UlMaB/1433067870292-0.38050112361088395/package/Readme.md'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.16.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent-hybrid"
npm ERR! cwd /home/gigi
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /var/www/tmp/npm-1913-BE0UlMaB/1433067870292-0.38050112361088395/package/Readme.md
npm ERR! fstream_path /var/www/tmp/npm-1913-BE0UlMaB/1433067870292-0.38050112361088395/package/Readme.md
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, chown '/var/www/tmp/npm-1913-BE0UlMaB/1433067870153-0.9869748451747/package/test/perm.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.16.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent-hybrid"
npm ERR! cwd /home/gigi
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /var/www/tmp/npm-1913-BE0UlMaB/1433067870153-0.9869748451747/package/test/perm.js
npm ERR! fstream_path /var/www/tmp/npm-1913-BE0UlMaB/1433067870153-0.9869748451747/package/test/perm.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call chown
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:305:19
npm ERR! fstream_stack /usr/lib/nodejs/graceful-fs/polyfills.js:133:7
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, chown '/var/www/tmp/npm-1913-BE0UlMaB/1433067870229-0.6288995859213173/package/benchmark'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.16.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent-hybrid"
npm ERR! cwd /home/gigi
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /var/www/tmp/npm-1913-BE0UlMaB/1433067870229-0.6288995859213173/package/benchmark
npm ERR! fstream_path /var/www/tmp/npm-1913-BE0UlMaB/1433067870229-0.6288995859213173/package/benchmark/bench-multipart-parser.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call setupMadeDir
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack end (/usr/lib/nodejs/fstream/lib/writer.js:319:21)
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:336:20
npm ERR! fstream_stack next (/usr/lib/nodejs/fstream/lib/writer.js:366:20)
npm ERR! fstream_stack /usr/lib/nodejs/graceful-fs/polyfills.js:133:7
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http 200 https://registry.npmjs.org/optimist/-/optimist-0.3.7.tgz
npm ERR! tar pack Error reading /var/www/tmp/npm-1913-BE0UlMaB/1433067869825-0.31205613794736564/package
npm ERR! tar pack Error reading /var/www/tmp/npm-1913-BE0UlMaB/1433067869825-0.31205613794736564/package
npm ERR! Error: ENOENT, chown '/var/www/tmp/npm-1913-BE0UlMaB/1433067868385-0.09957471210509539/package/lib/report'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.16.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent-hybrid"
npm ERR! cwd /home/gigi
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /var/www/tmp/npm-1913-BE0UlMaB/1433067868385-0.09957471210509539/package/lib/report
npm ERR! fstream_path /var/www/tmp/npm-1913-BE0UlMaB/1433067868385-0.09957471210509539/package/lib/report/clover.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! fstream_finish_call setupMadeDir
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack end (/usr/lib/nodejs/fstream/lib/writer.js:319:21)
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:336:20
npm ERR! fstream_stack next (/usr/lib/nodejs/fstream/lib/writer.js:366:20)
npm ERR! fstream_stack /usr/lib/nodejs/graceful-fs/polyfills.js:133:7
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! addLocalDirectory Could not pack "/var/www/tmp/npm-1913-BE0UlMaB/1433067869825-0.31205613794736564/package" to "/var/www/.npm/cookie/0.1.0/package.tgz"
npm ERR! addLocalDirectory Could not pack "/var/www/tmp/npm-1913-BE0UlMaB/1433067869825-0.31205613794736564/package" to "/var/www/.npm/cookie/0.1.0/package.tgz"
npm ERR! Error: ENOENT, lstat '/var/www/tmp/npm-1913-BE0UlMaB/1433067868952-0.7095474135130644/package/lib/request.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.16.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent-hybrid"
npm ERR! cwd /home/gigi
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /var/www/tmp/npm-1913-BE0UlMaB/1433067868952-0.7095474135130644/package/lib/request.js
npm ERR! fstream_path /var/www/tmp/npm-1913-BE0UlMaB/1433067868952-0.7095474135130644/package/lib/request.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! tar pack Error reading /var/www/tmp/npm-1913-BE0UlMaB/1433067870156-0.45466629788279533/package
npm ERR! tar pack Error reading /var/www/tmp/npm-1913-BE0UlMaB/1433067870156-0.45466629788279533/package
npm ERR! addLocalDirectory Could not pack "/var/www/tmp/npm-1913-BE0UlMaB/1433067870156-0.45466629788279533/package" to "/var/www/.npm/buffer-crc32/0.2.1/package.tgz"
npm ERR! addLocalDirectory Could not pack "/var/www/tmp/npm-1913-BE0UlMaB/1433067870156-0.45466629788279533/package" to "/var/www/.npm/buffer-crc32/0.2.1/package.tgz"
npm ERR! Error: ENOENT, lstat '/var/www/tmp/npm-1913-BE0UlMaB/1433067870415-0.8519608972128481/package/index.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.16.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent-hybrid"
npm ERR! cwd /home/gigi
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /var/www/tmp/npm-1913-BE0UlMaB/1433067870415-0.8519608972128481/package/index.js
npm ERR! fstream_path /var/www/tmp/npm-1913-BE0UlMaB/1433067870415-0.8519608972128481/package/index.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/var/www/tmp/npm-1913-BE0UlMaB/1433067870162-0.7213264564052224/package/index.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.16.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent-hybrid"
npm ERR! cwd /home/gigi
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /var/www/tmp/npm-1913-BE0UlMaB/1433067870162-0.7213264564052224/package/index.js
npm ERR! fstream_path /var/www/tmp/npm-1913-BE0UlMaB/1433067870162-0.7213264564052224/package/index.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/var/www/tmp/npm-1913-BE0UlMaB/1433067868971-0.18019915581680834/package/lib/handlebars/compiler/parser.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.16.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent-hybrid"
npm ERR! cwd /home/gigi
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /var/www/tmp/npm-1913-BE0UlMaB/1433067868971-0.18019915581680834/package/lib/handlebars/compiler/parser.js
npm ERR! fstream_path /var/www/tmp/npm-1913-BE0UlMaB/1433067868971-0.18019915581680834/package/lib/handlebars/compiler/parser.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/wd/examples/promise/no-chain.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.16.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent-hybrid"
npm ERR! cwd /home/gigi
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/wd/examples/promise/no-chain.js
npm ERR! fstream_path /home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/wd/examples/promise/no-chain.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/var/www/tmp/npm-1913-BE0UlMaB/1433067869159-0.683199678780511/package/lib/source-map/source-map-consumer.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.16.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent-hybrid"
npm ERR! cwd /home/gigi
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /var/www/tmp/npm-1913-BE0UlMaB/1433067869159-0.683199678780511/package/lib/source-map/source-map-consumer.js
npm ERR! fstream_path /var/www/tmp/npm-1913-BE0UlMaB/1433067869159-0.683199678780511/package/lib/source-map/source-map-consumer.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/xtend/node_modules/object-keys/test/isArguments.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.16.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent-hybrid"
npm ERR! cwd /home/gigi
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/xtend/node_modules/object-keys/test/isArguments.js
npm ERR! fstream_path /home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/xtend/node_modules/object-keys/test/isArguments.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/var/www/tmp/npm-1913-BE0UlMaB/1433067869734-0.4505692331586033/package/types/mime.types'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.16.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent-hybrid"
npm ERR! cwd /home/gigi
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /var/www/tmp/npm-1913-BE0UlMaB/1433067869734-0.4505692331586033/package/types/mime.types
npm ERR! fstream_path /var/www/tmp/npm-1913-BE0UlMaB/1433067869734-0.4505692331586033/package/types/mime.types
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! Error: ENOENT, lstat '/home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/lodash/dist/lodash.compat.js'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.16.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent-hybrid"
npm ERR! cwd /home/gigi
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/lodash/dist/lodash.compat.js
npm ERR! fstream_path /home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/lodash/dist/lodash.compat.js
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm ERR! tar pack Error reading /var/www/tmp/npm-1913-BE0UlMaB/1433067832856-0.8722494391258806/package
npm ERR! addLocalDirectory Could not pack "/var/www/tmp/npm-1913-BE0UlMaB/1433067832856-0.8722494391258806/package" to "/var/www/.npm/rx/2.5.2/package.tgz"
npm http GET https://registry.npmjs.org/split
npm http GET https://registry.npmjs.org/core-util-is
npm http GET https://registry.npmjs.org/isarray/0.0.1
npm http GET https://registry.npmjs.org/string_decoder
npm http 304 https://registry.npmjs.org/split
npm http GET https://registry.npmjs.org/split/-/split-0.1.2.tgz
npm http 304 https://registry.npmjs.org/core-util-is
npm http 304 https://registry.npmjs.org/string_decoder
npm http 200 https://registry.npmjs.org/split/-/split-0.1.2.tgz
npm http 304 https://registry.npmjs.org/isarray/0.0.1
npm http GET https://registry.npmjs.org/through/-/through-1.1.2.tgz
npm ERR! Error: ENOENT, lstat '/home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/firefox-profile/test/extensions/firebug-1.12.4-fx.xpi'
npm ERR! If you need help, you may report this log at:
npm ERR!     <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR!     <[email protected]>

npm ERR! System Linux 3.16.0-30-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent-hybrid"
npm ERR! cwd /home/gigi
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! path /home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/firefox-profile/test/extensions/firebug-1.12.4-fx.xpi
npm ERR! fstream_path /home/gigi/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/bittorrent-swarm/node_modules/bittorrent-protocol/node_modules/zuul/node_modules/firefox-profile/test/extensions/firebug-1.12.4-fx.xpi
npm ERR! fstream_type File
npm ERR! fstream_class FileWriter
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR! fstream_stack /usr/lib/nodejs/fstream/lib/writer.js:284:26
npm ERR! fstream_stack Object.oncomplete (fs.js:107:15)
npm http 200 https://registry.npmjs.org/through/-/through-1.1.2.tgz
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/gigi/npm-debug.log
npm ERR! not ok code 0

Any advice?

Thanks.

error on appendTo

Hi!
I always get the same error when use the file method appendTo
this is the error

TypeError: Cannot read property 'appendChild' of null
at createElem (.../webtorrent-hybrid/node_modules/webtorrent/node_modules/render-media/index.js:129:13)
at createMedia (.../webtorrent-hybrid/node_modules/webtorrent/node_modules/render-media/index.js:120:16)
at getElem (.../webtorrent-hybrid/node_modules/webtorrent/node_modules/render-media/index.js:115:60)
at prepareElem (.../webtorrent-hybrid/node_modules/webtorrent/node_modules/render-media/index.js:235:16)
at useVideostream (.../webtorrent-hybrid/node_modules/webtorrent/node_modules/render-media/index.js:171:7)
at renderMediaSource (.../webtorrent-hybrid/node_modules/webtorrent/node_modules/render-media/index.js:161:9)
at renderMedia (.../webtorrent-hybrid/node_modules/webtorrent/node_modules/render-media/index.js:145:5)
at Object.append (.../webtorrent-hybrid/node_modules/webtorrent/node_modules/render-media/index.js:112:3)
at File.appendTo (.../webtorrent-hybrid/node_modules/webtorrent/lib/file.js:90:10)

webrtc bridge?

Is it possible to setup a node as a bridge between webrtc and the normal internet torrent nodes? If so, then webrtc nodes that connect through these bridges would have access to the full torrent space.

Alternatively, TCP or UDP packets can be delivered to and from JS via pnacl. I am interested in creating a pure client side standalone app that connects to the tcp/udp torrent nodes.

https://github.com/jl777/SuperNET builds both native and chrome app versions of bitcoin node (still in development) which uses p2p over tcp connections.

Since webtorrent has the latest UI (as compared to webtorrent-chrome) and also connects to the full set of torrent peers, I think bridging the two or just directly supporting normal peers in the chrome version would be possible.

Ideally there would be a way to get the latest webtorrent to work as a chrome app, but not sure how best to achieve that

James

Can't download file seeded by libtorrent

Hi,
Thanks for great project.

I am using libtorrent-nodewrap to seed file (see libtorrent and libtorrent-nodewrap ). And I can download the file seeded by libtorrent (see download-file-libtorrent.js in my sample). But i can't download with webtorrent-hybrid (see download-file-webtorrent-hybrid.js in my sample).

Is there any way to download file from libtorrent via webtorrent-hybrid or i make mistake somewhere when config for webtorrent-hybrid?

Here is the sample code
https://github.com/kimtn-bitmark/demo-webtorrent-hybrid-libtorrent

Not Seeding after download

Hi,
When i run the webtorrent hybrid command it does not seed after downloading.
Command: webtorrent-hybrid "magnet-url" --keep-seeding

"torrent downloaded successfully from 39/50 peers in 71s!
webtorrent is exiting..."

I would like to continue seeding even after downloading the file.

Warning: Possible EventEmitter memory leak detected

I have nodejs v5 a script in which i load lots of torrents simultaneously
Since when i switched to webtorrent-hybrid 1.0.3 from webtorrent i started to see this warning:

(node:2393) Warning: Possible EventEmitter memory leak detected. 11 data listeners added. Use emitter.setMaxListeners() to increase limit
(node:2393) Warning: Possible EventEmitter memory leak detected. 11 close listeners added. Use emitter.setMaxListeners() to increase limit
(node:2393) Warning: Possible EventEmitter memory leak detected. 11 error listeners added. Use emitter.setMaxListeners() to increase limit

I don't know what effect can this have on execution but it doesn't look normal.
Maybe just a switch from eventemitter to eventemitter3 can fix it.
edit:
This is affecting the execution of my script. It looks like i can't open more than 3 torrents at time.
edit 2:
It looks like upgrading nodejs to v6.10 solved the issue of the memory leak warning.
I still have problems with opening more than 3 torrents at time, but it looks like it's for another reason.
I'll open another issue in case, this one for me is solved.

Connecting from browser to both TCP/UDP peers and WebRTC (browser) peers

In the README.md of this repo, in node.js, webtorrent no longer connects to WebRTC peers, just normal TCP/UDP peers. If you want to connect to all types of peers, including WebRTC peers, from node.js, you need to use this package (webtorrent-hybrid).

What about from connections browser;
Do modules webtorrent and/or webtorrent-hybrid connect from browser to both TCP/UDP peers and WebRTC (browser) peers?

This was not clear to me from the docs.

Issue connecting to tracker

When I try seed a torrent using the command line, I get the error: connection error to wss://tracker.webtorrent.io. The normal webtorrent client connects to the tracker, so it shouldn't be offline.

How to build / find appropriate WebRTC package

I need a package that will automatically seed files from a node.js server without a screen over WebRTC to a front-end WebRTC client. I'm also willing to find / build a webRTC package that will work for that. The README claims to be waiting for nickdesaulniers/node-rtc-peer-connection to be finished, which doesn't seem to be touched in over a year. What is the criteria you're looking for? Why was wrtc dropped

Upload speed

Hi,
While executing js code
client.add(torrentId,{ path: '/path'}, function (torrent) {
var upload_interval = setInterval(function () {
console.log('Upload Speed: ' + torrent.uploadSpeed);
}, 5000);
})
is there any way to manage(increase) the upload speed?

No luck trying on CentOS or Ubuntu

Hello,

I am trying to spawn a seed server to stream data, however, webtorrent-hybrid always suck at fetching torrent metadata and does not switch to the download screen no matter how long I waited.

Tested on both ubuntu and centOS. Tested with webtorrent and webtorrent-hybrid CLI

Here's a screenshot:
image

What would be the problem for this? on OSX everything works perfectly

Always get an error

Hi i am new to webtorrent-hybrid, so if i had done something wrong and please correct me.
I have installed "npm install webtorrent-hybrid -g".
After if i type in terminal
webtorrent-hybrid $MAGNETURL
or
webtorrent-hybrid --help

i get the following error.
/usr/local/lib/node_modules/webtorrent-hybrid/node_modules/electron-webrtc/src/RTCPeerConnection.js:10
daemon.eval('window.conns = {}', (err) => {
^
SyntaxError: Unexpected token >
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
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 module.exports (/usr/local/lib/node_modules/webtorrent-hybrid/node_modules/electron-webrtc/index.js:11:24)
at Object. (/usr/local/lib/node_modules/webtorrent-hybrid/lib/global.js:2:38)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)

Is there anything wrong in CLI installation ? Help apprciated.

Seed Webrtc Peers only

Is there a way to download a magnet file from regular bittorrent peers and only seed it to webrtc peers ?

Error: write EPIPE

Fresh install of webtorrent-hybrid globally as CLI

webtorrent-hybrid seed awakening-new-zealand-4k.mp4

DEBUG INFO: webtorrent-cli 1.1.1, webtorrent 0.88.3, node v4.4.2, linux x64, exit 1
events.js:141
throw er; // Unhandled 'error' event
^

Error: write EPIPE
at exports._errnoException (util.js:870:11)
at WriteWrap.afterWrite (net.js:769:14)

Can't download when electron-wrtc seeding

Hi!
I'm trying seeding from webtorrent-hybrid simple file. But this file can't download on the instant.io website. This problem only in electron-wrtc implimentation (in the previos version webtorrent-hybrid with node-webrtc there was no problem).
node v4.3.0
Can you help? Thank you! :)

Example does not work on Node

Node Version: 6.9.1

Hi,
I am trying to run the node-download.js script provided in the examples directory and I am constantly getting this error:

      throw new Error('No WebRTC support: Specify `opts.wrtc` option in this environment')

Any help on how to proceed would be greatly appreciated.

Update:
I found out that this error was being caused by a failure to download the electron-prebuilt package.
Deleting the node_modules folder and re-installing the dependencies fixed it for me

Webtorrent-hybrid nevers ends file download

Hello,
I have webtorent-hybrid running on a torrent file, but it never ends downloading it.
The file size is 851.33MB, every time the console size gets at 831.33, it goes back to 849MB ... any ideas about this? ... Also sometimes it just hangs, have to kill the console and open another one.

I'll give more details if needed. Using nvm.

Thanks.

Reflections on the user's firewall?

First of all thanks for sharing this library. It works all out of the box and I was able to create a serverless website with node and crome in a few minutes. I d like to ask. Do there exist considerations for the web site visitors firewall which blocks webtorrent' s communication?

Not seeding normal torrent with WebTorrent network

I have made some research with the interconnection between the BitTorrent peers and the WebTorrent ones. If I try to download a normal torrent from a WebTorrent program, I will get only the metadata but nothing further. Unless, I take the webtorrent-browser and start seeding it. With this solution I can use that program as a bridge between both types of peers.
My problem is when I use WebTorrent-hybrid with my nodejs instance I can download both types of torrents but it does not seed between one network to another. What am I missing? What do I need to configure to seed between both networks?

Downloading torrent from Firefox fail when seeding from node.js

When seeding a file from node.js, it's impossible to connect as a peer with Firefox (tested with instant.io). If you open Chrome/Chromium, and use the same magnet link, it connects and downloads, and Firefox also starts downloading from the Chrome user.

error can not install on 32-bit

Hi Feross
I can't install on 32-bit both:
Ubuntu 14.04.2 / Raspberry PI 2 (RASPBIAN) Debin 7.8
but It works well at 64-bit Ubuntu 14.04.2

Log:
pi@raspberrypi ~ $ webtorrent -v
0.47.1
pi@raspberrypi ~ $ sudo npm install -g webtorrent-hybrid
npm WARN engine [email protected]: wanted: {"node":"0.6"} (current: {"node":"0.10.38","npm":"1.4.28"})
\

[email protected] install /usr/lib/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/torrent-discovery/node_modules/bittorrent-tracker/node_modules/ws/node_modules/utf-8-validate
node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.10.38"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/torrent-discovery/node_modules/bittorrent-tracker/node_modules/ws/node_modules/utf-8-validate/.node-gyp"
make: Entering directory '/usr/lib/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/torrent-discovery/node_modules/bittorrent-tracker/node_modules/ws/node_modules/utf-8-validate/build'
CXX(target) Release/obj.target/validation/src/validation.o
SOLINK_MODULE(target) Release/obj.target/validation.node
SOLINK_MODULE(target) Release/obj.target/validation.node: Finished
COPY Release/validation.node
make: Leaving directory '/usr/lib/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/torrent-discovery/node_modules/bittorrent-tracker/node_modules/ws/node_modules/utf-8-validate/build'

[email protected] install /usr/lib/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/torrent-discovery/node_modules/bittorrent-tracker/node_modules/ws/node_modules/bufferutil
node-gyp rebuild

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.10.38"
attempting to reinstall using temporary dev dir "/usr/lib/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/torrent-discovery/node_modules/bittorrent-tracker/node_modules/ws/node_modules/bufferutil/.node-gyp"
make: Entering directory '/usr/lib/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/torrent-discovery/node_modules/bittorrent-tracker/node_modules/ws/node_modules/bufferutil/build'
CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
SOLINK_MODULE(target) Release/obj.target/bufferutil.node
SOLINK_MODULE(target) Release/obj.target/bufferutil.node: Finished
COPY Release/bufferutil.node
make: Leaving directory '/usr/lib/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/torrent-discovery/node_modules/bittorrent-tracker/node_modules/ws/node_modules/bufferutil/build'
npm WARN optional dep failed, continuing [email protected]
npm WARN deprecated [email protected]: module has been merged into crc32-stream

[email protected] install /usr/lib/node_modules/webtorrent-hybrid/node_modules/webtorrent/node_modules/chromecast-js/node_modules/node-ssdp/node_modules/bunyan/node_modules/dtrace-provider
node scripts/install.js

\

[email protected] install /usr/lib/node_modules/webtorrent-hybrid/node_modules/wrtc
node-pre-gyp install --fallback-to-build

gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/0.10.38"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/lib/node_modules/webtorrent-hybrid/node_modules/wrtc/.node-gyp"
make: Entering directory '/usr/lib/node_modules/webtorrent-hybrid/node_modules/wrtc/build'
make: *** No rule to make target '../.node-gyp/0.10.38/common.gypi', needed by 'Makefile'. Stop.
make: Leaving directory '/usr/lib/node_modules/webtorrent-hybrid/node_modules/wrtc/build'
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/webtorrent-hybrid/node_modules/wrtc/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack at ChildProcess.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:820:12)
gyp ERR! System Linux 3.18.11-v7+
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/webtorrent-hybrid/node_modules/wrtc/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/usr/lib/node_modules/webtorrent-hybrid/node_modules/wrtc/build/wrtc/v0.0.55/Release/node-v11-linux-arm/wrtc.node" "--module_name=wrtc" "--module_path=/usr/lib/node_modules/webtorrent-hybrid/node_modules/wrtc/build/wrtc/v0.0.55/Release/node-v11-linux-arm"
gyp ERR! cwd /usr/lib/node_modules/webtorrent-hybrid/node_modules/wrtc
gyp ERR! node -v v0.10.38
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/webtorrent-hybrid/node_modules/wrtc/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/lib/node_modules/webtorrent-hybrid/node_modules/wrtc/build/wrtc/v0.0.55/Release/node-v11-linux-arm/wrtc.node --module_name=wrtc --module_path=/usr/lib/node_modules/webtorrent-hybrid/node_modules/wrtc/build/wrtc/v0.0.55/Release/node-v11-linux-arm' (1)
node-pre-gyp ERR! stack at ChildProcess. (/usr/lib/node_modules/webtorrent-hybrid/node_modules/wrtc/node_modules/node-pre-gyp/lib/util/compile.js:73:29)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:98:17)
node-pre-gyp ERR! stack at maybeClose (child_process.js:766:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:833:5)
node-pre-gyp ERR! System Linux 3.18.11-v7+
node-pre-gyp ERR! command "node" "/usr/lib/node_modules/webtorrent-hybrid/node_modules/wrtc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/lib/node_modules/webtorrent-hybrid/node_modules/wrtc
node-pre-gyp ERR! node -v v0.10.38
ERR! node-pre-gyp -v v0.6.4
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/webtorrent-hybrid/node_modules/wrtc/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/lib/node_modules/webtorrent-hybrid/node_modules/wrtc/build/wrtc/v0.0.55/Release/node-v11-linux-arm/wrtc.node --module_name=wrtc --module_path=/usr/lib/node_modules/webtorrent-hybrid/node_modules/wrtc/build/wrtc/v0.0.55/Release/node-v11-linux-arm' (1)
npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is most likely a problem with the wrtc package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! npm owner ls wrtc
npm ERR! There is likely additional logging output above.

npm ERR! System Linux 3.18.11-v7+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "webtorrent-hybrid"
npm ERR! cwd /home/pi
npm ERR! node -v v0.10.38
npm ERR! npm -v 1.4.28
npm ERR! code ELIFECYCLE
npm ERR! not ok code 0
pi@raspberrypi ~ $

Error starting `electron-webrtc` on Cent OS

I run this command in node


var WebTorrent = require('webtorrent-hybrid');
var client = new WebTorrent()

files = '/home/teste.mp4';

client.seed(files, function (torrent) {
    console.log('Client is seeding:', torrent.magnetURI );
})

And show:

Client is seeding: magnet:?xt=urn:btih:011e44ce997698779c31269114337f5c958e0126&dn=teste.mp4&tr=udp%3A%2F%2Fexodus.desync.com%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.internetwarriors.net%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&tr=wss%3A%2F%2Ftracker.webtorrent.io

But in web brower this code don't show any response in console

var torrentId = 'magnet:?xt=urn:btih:011e44ce997698779c31269114337f5c958e0126&dn=teste.mp4&tr=udp%3A%2F%2Fexodus.desync.com%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.internetwarriors.net%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&tr=wss%3A%2F%2Ftracker.webtorrent.io'; 

var client = new WebTorrent()

client.add(torrentId, function (torrent) {
  console.log(torrent.files[0]); 
})

And in uTorrent works fine.

Thank you.

Using webtorrent-hybrid to download from another webtorrent-hybrid seeding using WebRTC(electron-webrtc)

Hi Feross,

First of all, thanks for this amazing project.

Currently, I am using webtorrent-hybrid to seeding in node.js/Mac (also tested on Ubuntu with xvfb). I can download the files using instant.io or Desktop, but not from another webtorrent-hybrid node.js process.

But if I opened instant.io to download the same seed, the webtorrent-hybrid node.js download process start working. Once I close the browser (instant.io), the downloading process stopped too.

Any advice? Thank you!
Dennis

error command not found cli for --on-done

for debug info
npm version : 2.15.9
webtorrent-hybrid version : 1.6.0 (0.97.2)
error : --on-done: command not found
I also installed the webtorrent cli

command used : webtorrent-hybrid magnet:?xt=urn:btih:6a9759bffd5c0af65319979fb7832189f4f3c35d&dn=sintel.mp4&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&tr=wss%3A%2F%2Ftracker.webtorrent.io&ws=https%3A%2F%2Fwebtorrent.io%2Ftorrents%2Fsintel-1024-surround.mp4 --on-done node.js

here i used simple node js script saying console.log("This is node js");

Here once the torrent has been downloaded, I'm trying to run my own script. Here torrent file is downloaded but the script is excecuted. I don't n know what is the issue here. cli shows --on-done: command not found.
I also installed the webtorrent cli. Same problem exists.

after successful installation, running webtorrent-hybrid throws error

I have installed it with command sudo npm install webtorrent-hybrid -g

(xenial)patriotyk@localhost:~$ webtorrent-hybrid --help
/usr/local/lib/node_modules/webtorrent-hybrid/node_modules/simple-websocket/node_modules/ws/lib/PerMessageDeflate.js:8
const TRAILER = Buffer.from([0x00, 0x00, 0xff, 0xff]);
                       ^

TypeError: this is not a typed array.
    at Function.from (native)
    at Object.<anonymous> (/usr/local/lib/node_modules/webtorrent-hybrid/node_modules/simple-websocket/node_modules/ws/lib/PerMessageDeflate.js:8:24)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Module.require (module.js:354:17)
    at require (internal/module.js:12:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/webtorrent-hybrid/node_modules/simple-websocket/node_modules/ws/lib/WebSocket.js:16:27)
    at Module._compile (module.js:410:26)

Error at the end of execution

When i run the command $ webtorrent-hybrid tirrentfilename, i get an error at the end

UNEXPECTED ERROR: If this is a bug in WebTorrent, report it!
OPEN AN ISSUE: https://github.com/feross/webtorrent/issues

DEBUG INFO: webtorrent-cli 1.5.0, webtorrent 0.96.3, node v4.5.0, linux x64, exit 1
events.js:141
throw er; // Unhandled 'error' event
^

Error: write EPIPE
at exports._errnoException (util.js:907:11)
at WriteWrap.afterWrite (net.js:785:14)

webtorrent-hybrid SyntaxError: Unexpected reserved word

Terminal:
$ nodejs webtorrent.js

Script:

var Xvfb = require('xvfb')
var xvfb = new Xvfb()
xvfb.startSync()

var WebTorrent = require('webtorrent-hybrid')

var client = new WebTorrent()

// When user drops files on the browser, create a new torrent and start seeding it!
client.seed('tor-lol2', function (torrent) {
  console.log('Client is seeding:', torrent.infoHash)
})

Output:

/home/tutz/Videos/node_modules/webtorrent-hybrid/node_modules/electron-webrtc/node_modules/electron-eval/index.js:19
class Daemon extends EventEmitter {
^^^^^
SyntaxError: Unexpected reserved word
    at Module._compile (module.js:439:25)
    at Object.Module._extensions..js (module.js:474:10)
    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 Object.<anonymous> (/home/tutz/Videos/node_modules/webtorrent-hybrid/node_modules/electron-webrtc/index.js:2:16)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)

Why? =[

Build failing

In file included from ../../webrtc/base/iosfilesystem.mm:15:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPathUtilities.h:5:
In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:8:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:19:21: error: expected a type

  • (id)copyWithZone:(nullable NSZone *)zone;
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:25:28: error: expected a type
  • (id)mutableCopyWithZone:(nullable NSZone *)zone;
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:32:4: error: expected a type
  • (nullable instancetype)initWithCoder:(NSCoder *)aDecoder; // NS_DESIGNATED_INITIALIZER
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:53:4: error: expected a type
  • (nullable id)replacementObjectForCoder:(NSCoder *)aCoder;
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSObject.h:54:4: error: expected a type
  • (nullable id)awakeAfterUsingCoder:(NSCoder *)aDecoder NS_REPLACES_RECEIVER;
    ^
    In file included from ../../webrtc/base/iosfilesystem.mm:15:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPathUtilities.h:5:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:9:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSRange.h:5:
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSValue.h:17:4: error: expected a type
  • (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSValue.h:30:42: error: expected a type
  • (NSValue *)valueWithNonretainedObject:(nullable id)anObject;
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSValue.h:31:12: error: unknown property attribute 'nullable'
    @Property (nullable, readonly) id nonretainedObjectValue;
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSValue.h:33:32: error: expected a type
  • (NSValue *)valueWithPointer:(nullable const void *)pointer;
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSValue.h:34:12: error: unknown property attribute 'nullable'
    @Property (nullable, readonly) void *pointerValue;
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSValue.h:42:4: error: expected a type
  • (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSValue.h:81:38: error: expected a type
  • (NSString *)descriptionWithLocale:(nullable id)locale;
    ^
    In file included from ../../webrtc/base/iosfilesystem.mm:15:
    In file included from /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSPathUtilities.h:5:
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:12:23: error: expected ';' after @Class
    @Class NSData, NSArray, NSDictionary<KeyType, ObjectType>, NSCharacterSet, NSURL, NSError, NSLocale;
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:12:24: error: cannot find protocol declaration for 'ObjectType'
    @Class NSData, NSArray, NSDictionary<KeyType, ObjectType>, NSCharacterSet, NSURL, NSError, NSLocale;
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:12:35: error: expected unqualified-id
    @Class NSData, NSArray, NSDictionary<KeyType, ObjectType>, NSCharacterSet, NSURL, NSError, NSLocale;
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:82:4: error: expected a type
  • (nullable instancetype)initWithCoder:(NSCoder *)aDecoder NS_DESIGNATED_INITIALIZER;
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:109:123: error: expected a type
  • (NSComparisonResult)compare:(NSString *)string options:(NSStringCompareOptions)mask range:(NSRange)compareRange locale:(nullable id)locale; // locale arg used to be a dictionary pre-Leopard. We now accept NSLocale. Assumes the current locale if non-nil and non-NSLocale. nil continues to mean canonical compare, which doesn't depend on user's locale choice.
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:147:123: error: expected a type
  • (NSRange)rangeOfString:(NSString *)searchString options:(NSStringCompareOptions)mask range:(NSRange)searchRange locale:(nullable NSLocale *)locale NS_AVAILABLE(10_5, 2_0);
    ^
    /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/System/Library/Frameworks/Foundation.framework/Headers/NSString.h:151:37: error: expected a type
  • (NSRange)rangeOfCharacterFromSet:(NSCharacterSet *)searchSet;
    ^
    fatal error: too many errors emitted, stopping now [-ferror-limit=]
    20 errors generated.
    [448/630] CXX obj/webrtc/system_wrappers/source/system_wrappers.sort.o
    ninja: build stopped: subcommand failed.
    ERROR: 1 null

make: *** [/dev/null] Error 255
gyp ERR! build error
gyp ERR! stack Error: make failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/mat/dev/video-encoder/node_modules/webtorrent-hybrid/node_modules/wrtc/node_modules/node-gyp/lib/build.js:269:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 15.0.0
gyp ERR! command "/Users/mat/.nvm/versions/node/v4.1.2/bin/node" "/Users/mat/dev/video-encoder/node_modules/webtorrent-hybrid/node_modules/wrtc/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/mat/dev/video-encoder/node_modules/webtorrent-hybrid/node_modules/wrtc/build/wrtc/v0.0.58/Release/node-v46-darwin-x64/wrtc.node" "--module_name=wrtc" "--module_path=/Users/mat/dev/video-encoder/node_modules/webtorrent-hybrid/node_modules/wrtc/build/wrtc/v0.0.58/Release/node-v46-darwin-x64"
gyp ERR! cwd /Users/mat/dev/video-encoder/node_modules/webtorrent-hybrid/node_modules/wrtc
gyp ERR! node -v v4.1.2
gyp ERR! node-gyp -v v1.0.3
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/Users/mat/.nvm/versions/node/v4.1.2/bin/node /Users/mat/dev/video-encoder/node_modules/webtorrent-hybrid/node_modules/wrtc/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/mat/dev/video-encoder/node_modules/webtorrent-hybrid/node_modules/wrtc/build/wrtc/v0.0.58/Release/node-v46-darwin-x64/wrtc.node --module_name=wrtc --module_path=/Users/mat/dev/video-encoder/node_modules/webtorrent-hybrid/node_modules/wrtc/build/wrtc/v0.0.58/Release/node-v46-darwin-x64' (1)
node-pre-gyp ERR! stack at ChildProcess. (/Users/mat/dev/video-encoder/node_modules/webtorrent-hybrid/node_modules/wrtc/node_modules/node-pre-gyp/lib/util/compile.js:73:29)
node-pre-gyp ERR! stack at emitTwo (events.js:87:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:172:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:818:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
node-pre-gyp ERR! System Darwin 15.0.0
node-pre-gyp ERR! command "/Users/mat/.nvm/versions/node/v4.1.2/bin/node" "/Users/mat/dev/video-encoder/node_modules/webtorrent-hybrid/node_modules/wrtc/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /Users/mat/dev/video-encoder/node_modules/webtorrent-hybrid/node_modules/wrtc
node-pre-gyp ERR! node -v v4.1.2
node-pre-gyp ERR! node-pre-gyp -v v0.6.4
node-pre-gyp ERR! not ok
Failed to execute '/Users/mat/.nvm/versions/node/v4.1.2/bin/node /Users/mat/dev/video-encoder/node_modules/webtorrent-hybrid/node_modules/wrtc/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/mat/dev/video-encoder/node_modules/webtorrent-hybrid/node_modules/wrtc/build/wrtc/v0.0.58/Release/node-v46-darwin-x64/wrtc.node --module_name=wrtc --module_path=/Users/mat/dev/video-encoder/node_modules/webtorrent-hybrid/node_modules/wrtc/build/wrtc/v0.0.58/Release/node-v46-darwin-x64' (1)
npm ERR! Darwin 15.0.0
npm ERR! argv "/Users/mat/.nvm/versions/node/v4.1.2/bin/node" "/Users/mat/.nvm/versions/node/v4.1.2/bin/npm" "install" "webtorrent-hybrid"
npm ERR! node v4.1.2
npm ERR! npm v2.14.4
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node-pre-gyp install --fallback-to-build
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script 'node-pre-gyp install --fallback-to-build'.
npm ERR! This is most likely a problem with the wrtc package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node-pre-gyp install --fallback-to-build
npm ERR! You can get their info via:
npm ERR! npm owner ls wrtc
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/mat/dev/video-encoder/npm-debug.log

https://gist.github.com/acidhax/0b3b5dbe59b9a19dd1d1

Node Module Error (newline-json\parser.js)

It seams like there is a error within one of the dependencies. I'm not sure if this is just a windows problem.

events.js:160
      throw er; // Unhandled 'error' event
      ^

Error: Unexpected end of JSON input in "\n\"starting\"\n"
    at Parser._transform (G:\btproject\node_modules\newline-json\parser.js:30:12)
    at Parser.Transform._read (_stream_transform.js:167:10)
    at Parser.Transform._write (_stream_transform.js:155:12)
    at doWrite (_stream_writable.js:307:12)
    at writeOrBuffer (_stream_writable.js:293:5)
    at Parser.Writable.write (_stream_writable.js:220:11)
    at Socket.ondata (_stream_readable.js:556:20)
    at emitOne (events.js:96:13)
    at Socket.emit (events.js:188:7)
    at readableAddChunk (_stream_readable.js:177:18)

Transfers die

Transfers seem to die randomly, and never recover.

Bittorrent protocol stream over websocket

Thanks for the great projects! I've made some P2P video sharing via WebRTC in 2013 with some crude protocol, a real bittorrent protocol over webrtc which is great!

Now I'm trying to make something that can download resources in browser from normal BT network by using webtorrent-hybrid. But find wrtc is not stable, node is crashed several times during a download.

I thinking about using bittorrent protocol over websocket stream like: websocket_stream.pipe(wire).pipe(websocket_stream). As webtorrent-hybrid is running on kind of node server.


By checking the source code, I noticed some modules needs to be modified:

  • adding a websocket Peer, a websocket pool to bittorrent-swarm
  • bittorrent-tracker need websocket peer broadcast support
  • submit websocket address information via torrent-discovery

As there are a lot hard coded peer type detection and _onWebSocketRequest stuff, so I'm asking if you can consider adding this websocket peer.

Happy New Year!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.