S
S
stanlee2015-12-29 17:40:27
JavaScript
stanlee, 2015-12-29 17:40:27

How to enable es6 support in nodejs?

NodeJS 0.10.41
Npm 2.4
installed the babel package, I thought it would enable es6 support, I
run the script, it swears at import path from 'path';
those don't understand es6
What am I doing wrong?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question