Script doesn't seem to work on Linux Mint 22 XFCE.
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
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.
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.
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.
Have you tried the instructions from the final message from playwright? To install those deps?
i'll try doing that and i'll let you know how it goes. hopefully works
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.