node_modules not recognized after npm install on windows
<p>When I checkout my project and execute npm install on Windows 7, my dev_dependencies modules (gulp, electron, ...) they are not being recognized. </p>

<p>I've added "%AppData%\npm\node_modules" to my system path variables, but it has not worked. </p>

<p>When I try: <strong><em>npm run dist</em></strong>, the error I get is: </p>

<blockquote>
  <p>"gulp' is not recognized as an internal or external command operable
  program or batch file"</p>
</blockquote>

<p>So I assume than node modules are not being recognized. If I try to get gulp manually:</p>

<pre><code>npm install gulp
</code></pre>

<p>The problem has been solved to gulp,but not for the rest of modules.</p>

<p><strong>Package.json</strong></p>

<pre><code>{                                                           
"name": "MyApp",                                 
"description": "Desc",                                 
"version": "0.0.2",                                     
"author": {                                             
    "name": "me",                              
    "email": "me@email.com"                    
},                                                      
"main": "build/main.min.js",                            
"scripts": {                                            
    "start": "electron .",                              
    "pack": "gulp compile &amp;&amp; build --dir",              
    "dist": "gulp compile &amp;&amp; build -w --x64"            
},                                                      
"devDependencies": {                                    
    "del": "^2.2.0",                                    
    "electron-builder": "^5.22.1",                      
    "electron-packager": "^7.3.0",                      
    "electron-prebuilt": "^1.3.1",                      
    "gulp": "^3.9.1",                                   
    "gulp-bower": "0.0.13",                             
    "gulp-clean-css": "^2.0.6",                         
    "gulp-ng-annotate": "^2.0.0",                       
    "gulp-rename": "^1.2.2",                            
    "gulp-sass": "^2.3.1",                              
    "gulp-scss-lint": "^0.3.9",                         
    "gulp-server-livereload": "^1.7.4",                 
    "gulp-shell": "^0.5.2",                             
    "gulp-tsc": "^1.2.0",                               
    "gulp-uglify": "^1.5.3",                            
    "run-sequence": "^1.1.5",                           
    "typings": "^1.0.4"                                 
},                                                      
"dependencies": {                                       
    "fs-extra": "^0.30.0",                              
    "nedb": "^1.8.0"                                    
},                                                      
"build": {                                              
    "appId": "com.electron.app",                      
    "files": [ "build\/**\/*", "node_modules\/**\/*" ]  
},                                                      
"directories": {                                        
    "buildResources": "tmp-build",                      
    "output": "dist",                                   
    "app": "."                                          
}                                                       
}  
</code></pre>

<p>Thanks in advance!     </p>

<p>== EDIT ==  </p>

<p>I also try <a href="https://stackoverflow.com/questions/30710550/node-js-npm-modules-installed-but-command-not-recognized">this solution</a> but it hasn't worked.                                               </p>