Microsoft-Rewards-Script icon indicating copy to clipboard operation
Microsoft-Rewards-Script copied to clipboard

Script doesn't seem to work on Linux Mint 22 XFCE.

Open Kakuyamii opened this issue 3 months ago • 5 comments

Trying to follow instructions give me the following errors in the attached files, files attached are a .txt containing the errors and whatnot to avoid spamming the issue form

logs.txt

Kakuyamii avatar Sep 12 '25 03:09 Kakuyamii

can you post the logs or use pastebin? I can take a look (not the dev, but I do use it on Debian linux). I'm not downloading a file here though.

mgrimace avatar Sep 13 '25 14:09 mgrimace

can you post the logs or use pastebin? I can take a look (not the dev, but I do use it on Debian linux). I'm not downloading a file here though.

dont have a pastebin acc, but i'll post it directly here ~/Microsoft-Rewards-Script$ npm i npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '[email protected]', npm WARN EBADENGINE required: { node: '>=20.18.1' }, npm WARN EBADENGINE current: { node: 'v18.19.1', npm: '9.2.0' } npm WARN EBADENGINE } npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '[email protected]', npm WARN EBADENGINE required: { node: '20 || >=22' }, npm WARN EBADENGINE current: { node: 'v18.19.1', npm: '9.2.0' } npm WARN EBADENGINE } npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '[email protected]', npm WARN EBADENGINE required: { node: '>=20.18.1' }, npm WARN EBADENGINE current: { node: 'v18.19.1', npm: '9.2.0' } npm WARN EBADENGINE } npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '[email protected]', npm WARN EBADENGINE required: { node: '20 || >=22' }, npm WARN EBADENGINE current: { node: 'v18.19.1', npm: '9.2.0' } npm WARN EBADENGINE } npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '[email protected]', npm WARN EBADENGINE required: { node: '20 || >=22' }, npm WARN EBADENGINE current: { node: 'v18.19.1', npm: '9.2.0' } npm WARN EBADENGINE } npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '[email protected]', npm WARN EBADENGINE required: { node: '20 || >=22' }, npm WARN EBADENGINE current: { node: 'v18.19.1', npm: '9.2.0' } npm WARN EBADENGINE } npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '[email protected]', npm WARN EBADENGINE required: { node: '20 || >=22' }, npm WARN EBADENGINE current: { node: 'v18.19.1', npm: '9.2.0' } npm WARN EBADENGINE } npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '[email protected]', npm WARN EBADENGINE required: { node: '20 || >=22' }, npm WARN EBADENGINE current: { node: 'v18.19.1', npm: '9.2.0' } npm WARN EBADENGINE } npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '@isaacs/[email protected]', npm WARN EBADENGINE required: { node: '20 || >=22' }, npm WARN EBADENGINE current: { node: 'v18.19.1', npm: '9.2.0' } npm WARN EBADENGINE } npm WARN EBADENGINE Unsupported engine { npm WARN EBADENGINE package: '@isaacs/[email protected]', npm WARN EBADENGINE required: { node: '20 || >=22' }, npm WARN EBADENGINE current: { node: 'v18.19.1', npm: '9.2.0' } npm WARN EBADENGINE } npm WARN deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm WARN deprecated [email protected]: This package is deprecated. Use require('node:util').isDeepStrictEqual instead. npm WARN deprecated @humanwhocodes/[email protected]: Use @eslint/object-schema instead npm WARN deprecated @humanwhocodes/[email protected]: Use @eslint/config-array instead npm WARN deprecated [email protected]: Rimraf versions prior to v4 are no longer supported npm WARN deprecated [email protected]: Glob versions prior to v9 are no longer supported npm WARN deprecated [email protected]: This version is no longer supported. Please see https://eslint.org/version-support for other options.

added 259 packages, and audited 260 packages in 17s

76 packages are looking for funding run npm fund for details

found 0 vulnerabilities

npm run build

[email protected] build tsc

kaku@kaku-desktop:~/Microsoft-Rewards-Script$ npm run start

[email protected] start node ./dist/index.js

/home/kaku/Microsoft-Rewards-Script/node_modules/undici/lib/web/webidl/index.js:531 webidl.is.File = webidl.util.MakeTypeAssertion(File) ^

ReferenceError: File is not defined at Object. (/home/kaku/Microsoft-Rewards-Script/node_modules/undici/lib/web/webidl/index.js:531:48) at Module._compile (node:internal/modules/cjs/loader:1356:14) at Module._extensions..js (node:internal/modules/cjs/loader:1414:10) at Module.load (node:internal/modules/cjs/loader:1197:32) at Module._load (node:internal/modules/cjs/loader:1013:12) at Module.require (node:internal/modules/cjs/loader:1225:19) at require (node:internal/modules/helpers:177:18) at Object. (/home/kaku/Microsoft-Rewards-Script/node_modules/undici/lib/web/fetch/util.js:12:20) at Module._compile (node:internal/modules/cjs/loader:1356:14) at Module._extensions..js (node:internal/modules/cjs/loader:1414:10)

Node.js v18.19.1

npx playwright install Need to install the following packages: [email protected] Ok to proceed? (y) y ╔═══════════════════════════════════════════════════════════════════════════════╗ ║ WARNING: It looks like you are running 'npx playwright install' without first ║ ║ installing your project's dependencies. ║ ║ ║ ║ To avoid unexpected behavior, please install your dependencies first, and ║ ║ then run Playwright's install command: ║ ║ ║ ║ npm install ║ ║ npx playwright install ║ ║ ║ ║ If your project does not yet depend on Playwright, first install the ║ ║ applicable npm package (most commonly @playwright/test), and ║ ║ then run Playwright's install command to download the browsers: ║ ║ ║ ║ npm install @playwright/test ║ ║ npx playwright install ║ ║ ║ ╚═══════════════════════════════════════════════════════════════════════════════╝ BEWARE: your OS is not officially supported by Playwright; downloading fallback build for ubuntu24.04-x64. Downloading Chromium 140.0.7339.16 (playwright build v1187) from https://cdn.playwright.dev/dbazure/download/playwright/builds/chromium/1187/chromium-linux.zip 173.7 MiB [====================] 100% 0.0s Chromium 140.0.7339.16 (playwright build v1187) downloaded to /home/kaku/.cache/ms-playwright/chromium-1187 BEWARE: your OS is not officially supported by Playwright; downloading fallback build for ubuntu24.04-x64. Downloading Chromium Headless Shell 140.0.7339.16 (playwright build v1187) from https://cdn.playwright.dev/dbazure/download/playwright/builds/chromium/1187/chromium-headless-shell-linux.zip 104.3 MiB [====================] 100% 0.0s Chromium Headless Shell 140.0.7339.16 (playwright build v1187) downloaded to /home/kaku/.cache/ms-playwright/chromium_headless_shell-1187 BEWARE: your OS is not officially supported by Playwright; downloading fallback build for ubuntu24.04-x64. Downloading Firefox 141.0 (playwright build v1490) from https://cdn.playwright.dev/dbazure/download/playwright/builds/firefox/1490/firefox-ubuntu-24.04.zip 96 MiB [====================] 100% 0.0s Firefox 141.0 (playwright build v1490) downloaded to /home/kaku/.cache/ms-playwright/firefox-1490 BEWARE: your OS is not officially supported by Playwright; downloading fallback build for ubuntu24.04-x64. Downloading Webkit 26.0 (playwright build v2203) from https://cdn.playwright.dev/dbazure/download/playwright/builds/webkit/2203/webkit-ubuntu-24.04.zip 94.2 MiB [====================] 100% 0.0s Webkit 26.0 (playwright build v2203) downloaded to /home/kaku/.cache/ms-playwright/webkit-2203 BEWARE: your OS is not officially supported by Playwright; downloading fallback build for ubuntu24.04-x64. Downloading FFMPEG playwright build v1011 from https://cdn.playwright.dev/dbazure/download/playwright/builds/ffmpeg/1011/ffmpeg-linux.zip 2.3 MiB [====================] 100% 0.0s FFMPEG playwright build v1011 downloaded to /home/kaku/.cache/ms-playwright/ffmpeg-1011 Playwright Host validation warning: ╔══════════════════════════════════════════════════════╗ ║ Host system is missing dependencies to run browsers. ║ ║ Please install them with the following command: ║ ║ ║ ║ sudo npx playwright install-deps ║ ║ ║ ║ Alternatively, use apt: ║ ║ sudo apt-get install libavif16 ║ ║ ║ ║ <3 Playwright Team ║ ╚══════════════════════════════════════════════════════╝ at validateDependenciesLinux (/home/kaku/.npm/_npx/e41f203b7505f1fb/node_modules/playwright-core/lib/server/registry/dependencies.js:269:9) at async Registry._validateHostRequirements (/home/kaku/.npm/_npx/e41f203b7505f1fb/node_modules/playwright-core/lib/server/registry/index.js:934:14) at async Registry._validateHostRequirementsForExecutableIfNeeded (/home/kaku/.npm/_npx/e41f203b7505f1fb/node_modules/playwright-core/lib/server/registry/index.js:1056:7) at async Registry.validateHostRequirementsForExecutablesIfNeeded (/home/kaku/.npm/_npx/e41f203b7505f1fb/node_modules/playwright-core/lib/server/registry/index.js:1045:7) at async i. (/home/kaku/.npm/_npx/e41f203b7505f1fb/node_modules/playwright-core/lib/cli/program.js:217:7)

Kakuyamii avatar Sep 15 '25 09:09 Kakuyamii

Have you tried the instructions from the final message from playwright? To install those deps?

TheNetsky avatar Sep 15 '25 09:09 TheNetsky

i'll try doing that and i'll let you know how it goes. hopefully works

Kakuyamii avatar Sep 16 '25 08:09 Kakuyamii

It should work with the added sudo npx playwright install-deps, then rerun the script. I ran into that a lot on Debian on my end, and AFAIK Mint is Debian-based.

The dockerized version of the script should work well on your system too if you run into more issues.

You can install docker via: https://docs.docker.com/desktop/setup/install/linux/debian/, then tweak the config (set it as headless=true), tweak or leave the compose.yaml, then use docker compose up -d to build and run the script inside a container with all the deps, etc.

mgrimace avatar Sep 18 '25 01:09 mgrimace