You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What version of this package are you using?
Running npm install webtorrent-cli -g from arch terminal
What operating system, Node.js, and npm version?
Arch Linux Hyprland, Node.js v22.3.0, [email protected]
What happened?
Followed guide to install node, npm, and webtorrent
Tried to run webtorrent, error:
nullcode1337@MONARCH ~ [1]> s webtorrent
[sudo] password for nullcode1337:
file:///usr/lib/node_modules/webtorrent-cli/node_modules/webtorrent/index.js:20
import info from './package.json' assert { type: 'json' }
^^^^^^
SyntaxError: Unexpected identifier 'assert'
at compileSourceTextModule (node:internal/modules/esm/utils:337:16)
at ModuleLoader.moduleStrategy (node:internal/modules/esm/translators:164:18)
at callTranslator (node:internal/modules/esm/loader:429:14)
at ModuleLoader.moduleProvider (node:internal/modules/esm/loader:435:30)
Also happens when not running webtorrent via sudo, npm installation without sudo failed and I needed it for install
What did you expect to happen?
WebTorrent help menu to appear
Are you willing to submit a pull request to fix this bug?
As long as I'm guided to it
The text was updated successfully, but these errors were encountered:
This is linked with an already registered issue in WebTorrent, which can be found here: webtorrent/webtorrent#2777
Due to this issue, webtorrent (and webtorrent-cli) will not work with NodeJS 22 until this is fixed and you would have to downgrade to NodeJS 21 or wait for a fix.
I'll aim to look at this today, and will try and get a fix pushed out for this.
Sorry, the above PR actually broke webtorrent-cli in it's entirety... will have to wait for 5.1.2 which will include a fix for this issue and for webtorrent-cli not working. Please keep an eye on #311 for the fix.
What version of this package are you using?
Running
npm install webtorrent-cli -g
from arch terminalWhat operating system, Node.js, and npm version?
Arch Linux Hyprland, Node.js v22.3.0, [email protected]
What happened?
Followed guide to install node, npm, and webtorrent
Tried to run
webtorrent
, error:Also happens when not running webtorrent via sudo, npm installation without sudo failed and I needed it for install
What did you expect to happen?
WebTorrent help menu to appear
Are you willing to submit a pull request to fix this bug?
As long as I'm guided to it
The text was updated successfully, but these errors were encountered: