'gulp' is not recognized as an internal or external command
<p>I am trying to use <a href="http://gulpjs.com/" rel="noreferrer">Gulp</a> and <a href="https://nodejs.org/en/" rel="noreferrer">Node.Js</a> to stream my process for minifying and concatenating CSS/JS files for production.</p>

<p>Here is what I have done.</p>

<ol>
<li>I installed <a href="https://nodejs.org/en/" rel="noreferrer">Node.Js</a> on my Windows 7 machine.</li>
<li>Installed Gulp globally using this command <code>npm install -g gulp</code></li>
<li>Then I added a new User variable called <code>NODE_PATH</code> set it to <code>%AppData%\npm\node_modules</code></li>
</ol>

<p>After closing and re-opening my command line, I tried to run a gulp task from the command line (i.e. <code>gulp css</code>). But that give me the following error</p>

<pre><code>'gulp' is not recognized as an internal or external command
</code></pre>

<p>How can I get this to work?</p>

<p>When I opened the following path using the search bar in windows, 
<code>%AppData%\npm\node_modules</code> I see the following two folders</p>

<pre><code>gulp
gulp-cli
</code></pre>

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

<p>I've tried to add <code>%AppData%\npm\node_modules</code> to the <code>Path</code> variable on my system variable, but it did not take it because that variable reached it's max allowed character limit.</p>

<p>I removed couple of paths from my <code>Path</code> variable and added <code>;C:\Users\[MyWindowsUserName]\AppData\Roaming\npm\node_modules</code></p>

<p>but still not working.</p>

<p>I even tried to set the path at run time using this command</p>

<p><code>PATH=%PATH%;C:\Users\[MyWindowsUserName]\AppData\Roaming\npm\node_modules</code>
then run <code>gulp</code> and still the same issues.</p>

<p>What am I missing here? What else do I need in order to get this to work?</p>