0

web-ext is a command line tool designed to speed up various parts of the browser extension development process.

When I try web-ext run -t firefox-desktop, I got the following error:

Running web extension from /home/aloisdg/Source/markdin/source

Error: not found: firefox at F (/usr/lib/node_modules/web-ext/node_modules/fx-runner/node_modules/which/which.js:63:19) at E (/usr/lib/node_modules/web-ext/node_modules/fx-runner/node_modules/which/which.js:72:29) at /usr/lib/node_modules/web-ext/node_modules/fx-runner/node_modules/which/which.js:81:16 at /usr/lib/node_modules/web-ext/node_modules/fx-runner/node_modules/isexe/index.js:44:5 at /usr/lib/node_modules/web-ext/node_modules/fx-runner/node_modules/isexe/access.js:8:5 at FSReqCallback.oncomplete (node:fs:188:23)

I think it is because I dont have Firefox but Firefox Developer Edition.

How can I make it works with Firefox Developer Edition?

aloisdg
  • 213

1 Answers1

0

To run your extension with a version of Firefox Desktop other than the default, like the Firefox Developer Edition, use the --firefox option to specify a full path to the binary file.

First let's find the path to our binary. It is really easy:

which firefox-developer-edition

And the path found is /usr/bin/firefox-developer-edition.

Now we can run

web-ext run --firefox="/usr/bin/firefox-developer-edition"

And voilĂ .

screenshot

source: Using web-ext, which

aloisdg
  • 213