Spaces:
Sleeping
Sleeping
Download scripts/check-node-version.mjs from tao-shen/HuggingClaw-MissionControl: direct link, hf CLI and curl.
- Browser
- Download file 469 Bytes
-
https://huggingface.co/spaces/tao-shen/HuggingClaw-MissionControl/resolve/main/scripts/check-node-version.mjs
- Command line
-
hf download hf://spaces/tao-shen/HuggingClaw-MissionControl/scripts/check-node-version.mjs
-
curl -L -o check-node-version.mjs https://huggingface.co/spaces/tao-shen/HuggingClaw-MissionControl/resolve/main/scripts/check-node-version.mjs
469 Bytes
| const MIN_NODE_MAJOR = 22 | |
| const current = process.versions.node | |
| const currentMajor = Number.parseInt(current.split('.')[0] || '', 10) | |
| if (currentMajor < MIN_NODE_MAJOR) { | |
| console.error( | |
| [ | |
| `error: Mission Control requires Node ${MIN_NODE_MAJOR} or later, but found ${current}.`, | |
| 'use `nvm use 22` (recommended LTS) or any later version before installing, building, or starting the app.', | |
| ].join('\n') | |
| ) | |
| process.exit(1) | |
| } | |