MagicMirror icon indicating copy to clipboard operation
MagicMirror copied to clipboard

Install error: Playwright does not support firefox on ubuntu18.04-arm64

Open MMM-Jasmin opened this issue 3 years ago • 7 comments

Hi,

i am trying to install the newest version on an arm64 system. Since the last version playwright was added as it seems. When I try to execute the npm install I receive the the error:

ERROR: Playwright does not support firefox on ubuntu18.04-arm64 even firefox is not installed on the system.

edit: @khassel I guess you added playwright instead of spelectron, right?

2022-03-14T11_57_07_251Z-debug-0.log

MMM-Jasmin avatar Mar 14 '22 11:03 MMM-Jasmin

playwright is for testing.

do

npm install only=prod

sdetweil avatar Mar 14 '22 12:03 sdetweil

as addition to @sdetweil's answer: There is already a PR in the documention repository reflecting this which will be hopefully merged soon.

Only users who wants to run the tests needs the devDependencies (including playwright), so for 99% of the installations running npm install only=prod (or npm install omit=dev depending on the npm version) is the better choice. Its quicker and needs less space on disk.

khassel avatar Mar 14 '22 19:03 khassel

@khassel merged it!

MichMich avatar Mar 14 '22 19:03 MichMich

Cool thanks for the clarification! It works with --omit=dev. But i guess it is "--only=prod" or "--omit=dev", isn´t it? They documentation now stats both

"Install the application: npm install --only=prod --omit=dev"

MMM-Jasmin avatar Mar 15 '22 13:03 MMM-Jasmin

I have updated the scripts, install and upgrade to handle the different options for prod only/omit dev

https://github.com/sdetweil/MagicMirror_scripts

sdetweil avatar Mar 15 '22 15:03 sdetweil

Tested now npm install --only=prod --omit=dev with node v16 and v17 and this works. I think the contributor of the documentation PR testet this for older versions too.

The --omit was introduced with npm 7.x (Node v15) so we can remove the --only option with end of life of Node v14 (2023-04-30).

khassel avatar Mar 15 '22 19:03 khassel

I changed my scripts to use --omit for npm 8

sdetweil avatar Mar 15 '22 23:03 sdetweil

should be closed @MMM-Jasmin @MichMich

khassel avatar Oct 01 '22 20:10 khassel