You are not logged in.
I am trying to make a local firefox extension install. I used python web-ext-helper as a start and have obtained api-key and secret.
When I run web-ext-helper sign it wants web-ext. So I did sudo pacman -S web-ext. It wants nodejs-lts-iron and that installed Ok.
web-ext --help fails with a syntax error
web-ext --help
(node:3524) ExperimentalWarning: The ESM module loader is experimental.
file:///usr/lib/node_modules/web-ext/bin/web-ext.js:13
await webExt.main(absolutePackageDir);
^^^^^
SyntaxError: Unexpected reserved word
at Loader.moduleStrategy (internal/modules/esm/translators.js:117:18)
at async link (internal/modules/esm/module_job.js:42:21)
The system is running fine and is up to date.
Anyone know what I need to do to make this node stuff work? I find node & npm are a more hellish version of dependency madness.
nodejs-lts-iron 20.18.0-1
nodejs-nopt 7.2.0-2
node-gyp 10.2.0-1
npm 10.9.0-1
web-ext 8.3.0-1
EDIT: this error was caused by orphaned files in /usr/local/bin node npm npx; after removal and reinstallation of web-ext it started to work.
Last edited by replabrobin (2024-11-29 12:17:16)
Offline