title: Locally installed gulp not running in command line?
body: <p>I am new to nodejs and gulp stuff. I working on a nodejs project in which I have to run jslint on all the files. I am using gulp for this purpose.</p>
  
  <p>My problem is that In order to run gulp on cli I don't want to install gulp globally and also does not want to update my path variable, So I have installed gulp and other node modules in my project locally using the package.json file</p>
  
  <blockquote>
    <p>cd myproject</p>
    
    <p>npm install</p>
  </blockquote>
  
  <p>Since I don't want to install gulp globally and want to run the local gulp I have added script in my package.json file like this as given in <a href="https://stackoverflow.com/questions/22115400/why-do-we-need-to-install-gulp-globally-and-locally">this</a> question </p>
  
  <pre><code>{
    "name": "",
    "version": "1.0.0",
    "main": "index.js",
    "private": true,
    "dependencies": {
      "async": "1.5.0"
    },
    "devDependencies": {
      "gulp": "^3.9.0",
      "gulp-jslint": "^0.2.2"
    },
    "scripts": {
        "gulp": "./node_modules/.bin/gulp"   // is this correct?
      }
  }
  </code></pre>
  
  <p>Add added a gulpfile.js inside my myproject folder </p>
  
  <pre><code>var gulp = require('gulp'); 
  
  // include plug-ins
  var jslint = require('gulp-jslint');
  
  // JS hint task
  gulp.task('lint', function() {
    gulp.src('./common/srp/*.js')
      .pipe(jslint())
      .pipe(jslint.reporter('default'));
  });
  
  gulp.task("default", ["lint"]);
  </code></pre>
  
  <p>But now on my command line inside myproject folder, when I run gulp and gulp lint I get an error</p>
  
  <blockquote>
    <p>user1-VirtualBox:~/myproject$ gulp lint</p>
    
    <p>/usr/local/node-v0.10.26-linux-x64/bin/gulp   No such file or
    directory</p>
  </blockquote>
  
  <p>Its looking for gulp in the global node module.</p>
  
  <p>Is there a way to make gulp run on cli without installing globally and updating PATH variable.</p>
  
  <p>Any help will be appreciated 
  Thanks</p>