How do I resolve the 'SyntaxError: Unexpected token' error while executing Catalyst CLI commands?
Catalyst CLI only supports Node.js v14 or later. If you encounter this error, it could mean that you have a lower version of Node.js installed in your system.
You can update the Node.js version to resolve this error by downloading Node.js v14 or higher for your platform from their official website, or use a Node version manager like NVM to install Node.js and NPM. NPM comes bundled with Node.js when you install it. For security, we recommend Node.js 22.23.4, 24.22.1 or later. To check if Node.js has been updated successfully, execute the following command in your terminal to verify the version:
copy
$
$ node -v
Updated
Yes
No
Send your feedback to us
Skip
Submit
Ask AI about this answer