Skip to content

Conversation

@rosen-vladimirov
Copy link
Contributor

In case you are using unsupported Node.js version CLI must show you error that this version is not supported and to inform you which is the supported range. Currently this is not working and CLI shows error for Unexpected token.
The problem is that CLI has some specific logic to check the Node.js version and the code should be pure ES5 syntax in order to work with old Node.js versions (by default CLI's code is ES6).
The current issue is caused by using string interpolation in the mentioned code. Fix the message to fix the problem.

PR Checklist

What is the current behavior?

What is the new behavior?

Fixes #4665

In case you are using unsupported Node.js version CLI must show you error that this version is not supported and to inform you which is the supported range. Currently this is not working and CLI shows error for `Unexpected token`.
The problem is that CLI has some specific logic to check the Node.js version and the code should be pure ES5 syntax in order to work with old Node.js versions (by default CLI's code is ES6).
The current issue is caused by using string interpolation in the mentioned code. Fix the message to fix the problem.
@rosen-vladimirov
Copy link
Contributor Author

test cli-smoke

@rosen-vladimirov
Copy link
Contributor Author

test cli-smoke nativescript-dev-typescript#latest

@dtopuzov
Copy link
Contributor

dtopuzov commented Jun 2, 2019

test cli-smoke nativescript-dev-typescript#latest tns-core-modules#5.4.0

1 similar comment
@rosen-vladimirov
Copy link
Contributor Author

test cli-smoke nativescript-dev-typescript#latest tns-core-modules#5.4.0

@rosen-vladimirov
Copy link
Contributor Author

test cli-smoke nativescript-dev-typescript#latest tns-core-modules#5.4.0

1 similar comment
@rosen-vladimirov
Copy link
Contributor Author

test cli-smoke nativescript-dev-typescript#latest tns-core-modules#5.4.0

@rosen-vladimirov
Copy link
Contributor Author

test cli-smoke

@rosen-vladimirov rosen-vladimirov merged commit 812d980 into release Jun 4, 2019
@rosen-vladimirov rosen-vladimirov deleted the vladimirov/correct-nodejs-error branch June 4, 2019 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants