Package Details: webtorrent-cli 6.0.1-1

Git Clone URL: https://aur.archlinux.org/webtorrent-cli.git (read-only, click to copy)
Package Base: webtorrent-cli
Description: The streaming torrent client. For the command line.
Upstream URL: https://webtorrent.io
Keywords: feross streaming torrent webtorrent
Licenses: MIT
Provides: webtorrent
Submitter: navarroaxel
Maintainer: navarroaxel
Last Packager: navarroaxel
Votes: 19
Popularity: 0.99
First Submitted: 2020-05-06 20:07 (UTC)
Last Updated: 2026-08-19 18:38 (UTC)

Latest Comments

justbispo commented on 2026-08-31 00:42 (UTC)

The program doesn't work for me

> webtorrent info https://webtorrent.io/torrents/big-buck-bunny.torrent                                                                                                                   2s195ms  01:14:01.367
node:internal/modules/cjs/loader:1569
  const err = new Error(message);
              ^

Error: Cannot find module '../../../build/Release/node_datachannel.node'
Require stack:
- /usr/lib/webtorrent-cli/node_modules/node-datachannel/dist/esm/lib/node-datachannel.mjs
    at Module._resolveFilename (node:internal/modules/cjs/loader:1569:15)
    at wrapResolveFilename (node:internal/modules/cjs/loader:1123:27)
    at defaultResolveImplForCJSLoading (node:internal/modules/cjs/loader:1147:10)
    at resolveForCJSWithHooks (node:internal/modules/cjs/loader:1174:12)
    at Module._load (node:internal/modules/cjs/loader:1346:5)
    at wrapModuleLoad (node:internal/modules/cjs/loader:261:19)
    at Module.require (node:internal/modules/cjs/loader:1679:12)
    at require (node:internal/modules/helpers:196:16)
    at file:///usr/lib/webtorrent-cli/node_modules/node-datachannel/dist/esm/lib/node-datachannel.mjs:9:25
    at ModuleJob.run (node:internal/modules/esm/module_job:569:25) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/usr/lib/webtorrent-cli/node_modules/node-datachannel/dist/esm/lib/node-datachannel.mjs'
  ]
}

Node.js v26.7.0

I think that's because the install lifecycle script doesn't run. The build step does show this:

npm warn install-scripts 6 packages had install scripts blocked because they are not covered by allowScripts:
(...)
npm warn install-scripts   node-datachannel@0.32.3 (install: prebuild-install -r napi || (npm install --ignore-scripts --production=false && npm run _prebuild))
npm warn install-scripts
npm warn install-scripts Run `npm install-scripts ls` to review, or `npm install-scripts approve <pkg>` to allow.

I think the way to fix it is to have npm install --omit=dev --allow-scripts=node-datachannel instead.

mcol commented on 2022-01-02 19:49 (UTC)

Hi there, this doesn't build in a clean chroot and gives this error:

npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -2
npm ERR! enoent An unknown git error occurred
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     /build/.npm/_logs/2022-01-02T19_39_43_438Z-debug-0.log

Adding git to makedepends does the trick.

navarroaxel commented on 2020-11-26 20:38 (UTC)

Thanks @basedtho but Feross made all the work! https://twitter.com/feross/status/1330582600813924352

<deleted-account> commented on 2020-11-26 19:02 (UTC)

thank you for this! this is great!