I know there are Run/Debug configurations in WebStorm, but I don't know how to configure the context menu (when I right click in a file, it has Run... and Debug... in the menu, but I can't find where to configure this).
Run configurations are created via Run | Edit Configurations... : press +, choose Node.js, in created configuration specify babel-node as Node Interpreter:

But note that debugging doesn't work well when using it. I'd strongly recommend using -r @babel/register Node.js parameter instead - see comments in https://youtrack.jetbrains.com/issue/WEB-21949
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With