title: How to do npm scripts work vs direct commands?
body: <p>I keep seeing this behavior, so I want to understand it. I install gulp and the gulp-cli (not globally). Typing the gulp command gives me <code>-bash: gulp: command not found</code></p>
  
  <p>I take the gulp command and drop it into an npm script and boom, it works. Can someone explain what's going on here?</p>
  
  <pre><code>"scripts": {
      "test": "echo \"Error: no test specified\" &amp;&amp; exit 1",
      "gulp": "gulp", // This works!!
      "gulp-build": "gulp build" // As does this!!
    },
  </code></pre>