“unexpected token import” in Nodejs5 and babel?
In js file, i used import to instead of require import co from ‘co’; And tried to run it directly by nodejs since it said import is ‘shipping features’ and support without any runtime flag (https://nodejs.org/en/docs/es6/), but i got an error import co from ‘co’; ^^^^^^ SyntaxError: Unexpected token import Then i tried to use … Read more