Comments (7)
Node <4 support is now enabled as of [email protected]
.
from webtorrent-hybrid.
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 Class
es 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.
@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.
v0.10.25
from webtorrent-hybrid.
@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.
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.
Node less older than v4 will be deprecated by the end of 2016. You should upgrade!
from webtorrent-hybrid.
Related Issues (20)
- No interoperability with instant.io HOT 1
- undefined symbol: napi_add_env_cleanup_hook HOT 1
- installation error HOT 3
- Error: Cannot read property 'catch' of null HOT 4
- Dependency Dashboard HOT 1
- installation fails HOT 1
- node-pre-gyp not found
- Unable to read event under a event. HOT 3
- cannot read property 'replace' of undefined
- Cannot import in expressjs HOT 5
- TypeScript support HOT 1
- Nodejs WebTorrent.WEBRTC_SUPPORT false, but expected true HOT 1
- Update for Fast Extensions? HOT 2
- WebRTC peer, not working the linux cli HOT 10
- `npm install webtorrent-hybrid -g` fails on Ubuntu 20LTS and Windows 10 HOT 9
- shouldn't this repository be invalid as webtorrent/webtorrent #143 was merged HOT 1
- Error: Cannot find module '../build/Release/wrtc.node' When using
- globalThis is not defined HOT 3
- Error about `node-gyp` or `node-pre-gyp` when install HOT 10
- `npm i -S webtorrent-hybrid` — error HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webtorrent-hybrid.