Git Product home page Git Product logo

Comments (7)

mappum avatar mappum commented on May 18, 2024 1

Node <4 support is now enabled as of [email protected].

from webtorrent-hybrid.

autarc avatar autarc commented on May 18, 2024

This is probably an issue related to the node version used for the execution. Can you tell us which one you are using (see node --version) ? The error points to Classes which are a ES2015 feature and not supported in all environments.

@mappum:
Guess the electron-eval module should probably either reference transpiled source code via the main field for older setups or explicitly require an engine above 5.X. What do you prefer ?

from webtorrent-hybrid.

mappum avatar mappum commented on May 18, 2024

@autarc I'll setup Babel transpilation. There's a setup I'm happy with which I use in other repos where it transpiles on npm publish, and uses a symlink to the es6 source while developing.

from webtorrent-hybrid.

webarthur avatar webarthur commented on May 18, 2024

v0.10.25

from webtorrent-hybrid.

mappum avatar mappum commented on May 18, 2024

@webarthur Try reinstalling the dependencies (rm -r node_modules && npm i) and it should now support your version of Node. BTW, you may also want to consider using a newer version of Node (see nvm for a convenient way to update).

from webtorrent-hybrid.

webarthur avatar webarthur commented on May 18, 2024

Ok, I have updated nodejs:

curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs

Terminal:

$ nodejs webtorrent.js 
sleep: using busy loop fallback
Client is seeding: f11ba044326c18d8c62b7c6d19ba1005d903207b

And in browser (https://instant.io/#f11ba044326c18d8c62b7c6d19ba1005d903207b) works! Looks great!

I will put it to work on a digitalocean ubuntu server, there is a documentation for this?

Thanks!

from webtorrent-hybrid.

feross avatar feross commented on May 18, 2024

Node less older than v4 will be deprecated by the end of 2016. You should upgrade!

from webtorrent-hybrid.

Related Issues (20)

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.