Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • Thanks for the fix, and now i face a new challenge below Commented Mar 8, 2016 at 20:49
  • And you have it installed globally? Try running a script outside emacs with just require ('babel-preset-es2015'); to see that it's installed and accessible Commented Mar 8, 2016 at 20:57
  • I ran the above on babel-node in a terminal and the output was Error: Cannot find module 'babel-preset-es2015' .... Commented Mar 8, 2016 at 21:39
  • after a quick run on babel-doctor, i notice i'm missing a .babelrc . How should i deal with this ? Commented Mar 8, 2016 at 21:40
  • if babel-preset-es2015 was successfully installed globally you probably have a problem with your NODE_PATH. As far as .babelrc goes babel-node --presets es2015 accomplishes the same thing as { "presets": ["es2015"] } in your .babelrc, so a .babelrc isn't strictly necessary. .babelrc would definitely be preferred, but for some reason babel-node never considers ~/.babelrc on my system. Commented Mar 8, 2016 at 21:53