Comments (10)
I also have this issue on node v17.6.0
npm i webtorrent-hybrid
npm WARN deprecated [email protected]: Deprecated due to CVE-2021-21366 resolved in 0.5.0
npm WARN deprecated [email protected]: This package is unmaintained and deprecated. See the GH Issue 259.
npm ERR! code 1
npm ERR! path /Users/konsumer/Desktop/otherdev/webshare/node_modules/wrtc
npm ERR! command failed
npm ERR! command sh -c node scripts/download-prebuilt.js
npm ERR! /bin/sh: node-pre-gyp: command not found
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/konsumer/.npm/_logs/2022-09-06T00_47_54_464Z-debug-0.log
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:
npm install wrtc
npm ERR! code 1
npm ERR! path /Users/konsumer/Desktop/webtorrent-hybrid/node_modules/wrtc
npm ERR! command failed
npm ERR! command sh -c node scripts/download-prebuilt.js
npm ERR! /bin/sh: node-pre-gyp: command not found
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/konsumer/.npm/_logs/2022-09-06T00_51_43_917Z-debug-0.log
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.
from webtorrent-hybrid.
@lanjingyun I made a PR to fix it (see above) and also instructions on the PR for doing it without the webtorrent-hybrid wrapper.
from webtorrent-hybrid.
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.)
from webtorrent-hybrid.
I got the same problem,have some ways to fix it?
from webtorrent-hybrid.
npm i webtorrent-hybrid
npm WARN deprecated [email protected]: Deprecated due to CVE-2021-21366 resolved in 0.5.0
npm WARN deprecated [email protected]: This package is unmaintained and deprecated. See the GH Issue 259.
npm ERR! code 1
npm ERR! path F:\xampp\htdocs\3\node_modules\wrtc
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/download-prebuilt.js
npm ERR! 'node-pre-gyp' is not recognized as an internal or external command,
npm ERR! operable program or batch file.
When I want to install I am facing this problem how can I install it by solving it
from webtorrent-hybrid.
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?
from webtorrent-hybrid.
Bummer. Is this project dead?
from webtorrent-hybrid.
!reopen
from webtorrent-hybrid.
Related Issues (20)
- 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 2
- 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
- It is not working for commonJs HOT 2
- globalThis is not defined HOT 3
- `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.