Questions about node?

  node.js, question

Problem

When using nodejs to test es6, es6 cannot be compiled normally. Some new features of es6 always report errors.

The following is the version of node on my computer

图片描述

Code

let a = 10;
 console.log(a);

Error reporting screenshot
图片描述

To solve this is to ask What?

Run directly in strict mode, mine is 4.2 can:

node-es6