How to install and use Babel and watchers in PhpStorm on Windows?
<p>I've downloaded nodejs (v6.3.0 Current) from <a href="https://nodejs.org/en/" rel="nofollow noreferrer">https://nodejs.org/en/</a> and installed it.</p>

<p>I also installed <code>nodejs</code> plugin in PhpStorm.</p>

<p><a href="https://i.stack.imgur.com/cnvbm.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cnvbm.jpg" alt="enter image description here"></a></p>

<p>In my Settings &rarr; Languages&amp;Frameworks &rarr; Node.js and NPM I can see it settings</p>

<p><a href="https://i.stack.imgur.com/H1h2X.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/H1h2X.jpg" alt="enter image description here"></a></p>

<p>In the PhpStorm's Terminal I'm entering the command:</p>

<pre><code>npm install --save-dev babel
</code></pre>

<p>I see <code>node_modules</code> with the <code>babel.js</code> in my project </p>

<p><a href="https://i.stack.imgur.com/3rOz9.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3rOz9.jpg" alt="enter image description here"></a></p>

<p>Also I see it in Settings &rarr; Languages&amp;Frameworks &rarr; Node.js  &rarr; packages</p>

<p>Now I'm changing Npm packgage path from <code>C:\Program Files\nodejs\node_modules\npm</code> to <code>myProjectDir/node_modules</code> (in my case it is <code>D:\!work\!WEBServers\OpenServer\domains\dev.test.ru\node_modules</code>).  I don't know why.. Do I need to do that?</p>

<p>I'm creating <code>js</code> file with code:</p>

<pre><code>let foo = () =&gt; console.log('test');
foo();
</code></pre>

<p>and trying to add a watcher</p>

<p><a href="https://i.stack.imgur.com/TQGFq.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/TQGFq.jpg" alt="enter image description here"></a></p>

<p>But when I'm trying to change something in the file - PhpStorm gives me an error:</p>

<blockquote>
  <p>An exception occurred while executing watcher 'Babel'. Watcher has been disabled. Fix it.: 
  Cannot run program "D:!work!WEBServers\OpenServer\domains\dev.test.ru\node_modules\.bin\babel" (in directory "D:!work!WEBServers\OpenServer\domains\dev.test.ru\src"): 
  CreateProcess error=193, %1 is not a valid win32 application</p>
</blockquote>

<hr>

<p>What am I doing wrong? How to install node, babel and other extensions (gulp, grunt etc) and enable watchers? What settings I should do?</p>