-
-
Notifications
You must be signed in to change notification settings - Fork 98
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
Error about node-gyp
or node-pre-gyp
when install
#167
Comments
I also have this issue on node v17.6.0
Seems like the issue is with wrtc. If I remove that from package.json it installs, and if I try to install it, I get same error:
It's hard to tell, but it looks liek the only place it is used is in global.js: globalThis.WRTC = wrtc I will try to make a PR to fix it. |
…ditionally fixed examples to work in esm
seed example seems to work with above PR,including being able to hit a remote demo-hash on https://instant.io/ (which was not working with regular webtorrent lib, in node.) |
I got the same problem,have some ways to fix it? |
@lanjingyun I made a PR to fix it (see above) and also instructions on the PR for doing it without the webtorrent-hybrid wrapper. |
npm i webtorrent-hybrid When I want to install I am facing this problem how can I install it by solving it |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? |
Bummer. Is this project dead? |
!reopen |
Same issue on macOS. Installed the currently maintained(?), scoped, version of node-pre-gyp, crossed my fingers but still no banana:
|
@cbrunnkvist yeh, seems like this project is dead. No real response on my PR that fixes problem. You can do same stuff without this wrapper, by just using a more modern WebRTC polyfill & setting a default announce-list: import WebTorrent from 'webtorrent'
import { announceList } from 'create-torrent'
import wrtc from '@koush/wrtc'
// this was in global, but is it needed?
globalThis.WEBTORRENT_ANNOUNCE = announceList
.map(arr => arr[0])
.filter(url => url.indexOf('wss://') === 0 || url.indexOf('ws://') === 0)
globalThis.WRTC = wrtc
// now do regular webtorrent stuff... |
Windows10,
npm 8.5.1,
nodejs 17.6.0
I try
npm install webtorrent-hybrid -g
, and it say:I check some issues and try install
node-pre-gyp
,node-gyp
first. But it seem don't work:The log is too long so here is a part:
I remember I have been successfully installed before, may be I now use the version is too high.
Not important and urgent for me, but thanks for read.
The text was updated successfully, but these errors were encountered: