Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- CLI: 5.4.0
- Cross-platform modules: 5.4.0
- Android Runtime: 5.4.0
- iOS Runtime: 5.4.0
- Plugin(s): none
Describe the bug
I have just updated to the latest Nativescript version: v5.4.0, and when I try to run any common tns command for example: tns run ios or tns platform remove ios the command crashes and does not execute.
To Reproduce
Install latest Nativescript cli version
npm install -g nativescript
Create new hello-word app
tns create hello-word
then run:
tns run ios
Then the error occurs
Expected behavior
Command should run
Sample project
Any project
Additional context
See a screenshot below:

The error is the red message seen above.
Any command like tns run ios doesn't run, I've only found tns doctor to work but still provides the error message.