Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: incorrect error for non-supported Node.js version
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.
  • Loading branch information
rosen-vladimirov committed May 31, 2019
commit f83c233bae3df0739a4c752ca2e60a08f9c80049
2 changes: 1 addition & 1 deletion lib/common/verify-node-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export function verifyNodeVersion(): void {

var nodeWarning = getNodeWarning();
if (nodeWarning && nodeWarning.message) {
console.warn((`${os.EOL}${nodeWarning.message}${os.EOL}`).yellow.bold);
console.warn((os.EOL + nodeWarning.message + os.EOL).yellow.bold);
}
}

Expand Down