Nodejs does not declare how to start ES6 support for strict mode.

  node.js, question

Without the Nodejs version, if you do not declare'use strict';If so, ES6 syntax support will not be started, but if every file is declared to be a bit troublesome, is there any good way to let nodejs support ES6 syntax by default?

Babel is one of the solutions, but it is also a little troublesome to install the module repeatedly every time.

You can add parameters to the node command to enable strict mode by default
node --use_strict