GithubHelp home page GithubHelp logo

Comments (10)

konsumer avatar konsumer commented on June 11, 2024 2

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.

konsumer avatar konsumer commented on June 11, 2024 1

@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.

konsumer avatar konsumer commented on June 11, 2024

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.

luxi-record avatar luxi-record commented on June 11, 2024

I got the same problem,have some ways to fix it?

from webtorrent-hybrid.

abdurrahim11 avatar abdurrahim11 commented on June 11, 2024

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.

github-actions avatar github-actions commented on June 11, 2024

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

from webtorrent-hybrid.

konsumer avatar konsumer commented on June 11, 2024

Bummer. Is this project dead?

from webtorrent-hybrid.

alias-rahil avatar alias-rahil commented on June 11, 2024

!reopen

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.