This question already has an answer here:
Can I use ES6 module syntax with Node.js starting from version 8? Similar questions have already been asked on this site, but answers there are obsolete. I wonder if the situation has changed with new version of Node.js?
https://medium.com/the-node-js-collection/an-update-on-es6-modules-in-node-js-42c958b890c
It is in progress but the ETA is 2018 at the earliest.
来源:https://stackoverflow.com/questions/45379888/can-i-use-es6-modules-in-node-js-8