-
Notifications
You must be signed in to change notification settings - Fork 38
Description
Bug Report
Environment
- Apify CLI version: 1.1.1 (6d2b9fa)
- Node.js version: v22.20.0
- OS: Linux (Ubuntu 24.04.2 LTS)
- Installation method: pnpm
Description
The Apify CLI fails to run actors when using Node.js v22.20.0, throwing a parsing error about undefined 'runtimeShorthand' property.
Steps to Reproduce
- Install Node.js v22.20.0
- Install Apify CLI v1.1.1 via pnpm:
pnpm install -g apify-cli - Try to run any actor:
apify run --entrypoint platform/apify.js --input-file platform/input.json --purge
Expected Behavior
The actor should run successfully as it does with earlier Node.js versions.
Actual Behavior
Error: No Node.js detected! Please install Node.js >=20 (or higher) to be able to run Node.js Actors locally.
Error: The CLI encountered an unhandled argument parsing error!
Please report this issue at https://github.com/apify/apify-cli/issues
Error code: 9 (APIFY_UNKNOWN_ERROR)
Error metadata: {}
Stack:
Error: Unknown error: Cannot read properties of undefined (reading 'runtimeShorthand')
at CommandError.into (file:///home/codespace/.local/share/pnpm/global/5/.pnpm/apify-cli@1.1.1_@types+node@24.6.0/node_modules/apify-cli/dist/chunk-Z66FBOIA.js:39:680)
at runCLI (file:///home/codespace/.local/share/pnpm/global/5/.pnpm/apify-cli@1.1.1_@types+node@24.6.0/node_modules/apify-cli/dist/chunk-Z66FBOIA.js:42:1408)
at async file:///home/codespace/.local/share/pnpm/global/5/.pnpm/apify-cli@1.1.1_@types+node@24.6.0/node_modules/apify-cli/dist/apify.js:2:108
Arguments: ["run","--entrypoint","platform/apify.js","--input-file","platform/input.json","--purge"]
CLI version: apify-cli/1.1.1 (6d2b9fa) running on linux-x64 with node-22.20.0, installed via pnpm