To run es6 code in your webstorm, please do the following:
Get the help from the following page:
1.Install babel-cli (locally)
2. Then change your configuration to point to babel-node like babel-cli/bin/babel-node
3. Node parameters should be the following:
--presets es2015,stage-3 --expose-debug-as=v8debug
Now you need to install es2015 and stage-3 for babel node so run the following command:
npm install --save-dev babel-preset-es2015 babel-preset-stage-3
Then everything should work without any issues.