Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always get an error #42

Closed
sunilrx opened this issue Aug 23, 2016 · 3 comments
Closed

Always get an error #42

sunilrx opened this issue Aug 23, 2016 · 3 comments

Comments

@sunilrx
Copy link

sunilrx commented Aug 23, 2016

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.

@DiegoRBaquero
Copy link
Member

Please update your node version. Arrow functions aren't supported by your current version.

@feross
Copy link
Member

feross commented Aug 23, 2016

Yes, what @DiegoRBaquero said. I also added an engines field to package.json so there will be a warning on install when the version of node is too old.

@feross feross closed this as completed Aug 23, 2016
@sunilrx
Copy link
Author

sunilrx commented Aug 23, 2016

Thank You...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants