title: How do you run a js file using npm scripts?
body: <p>I can't get npm to work. My package.json file has</p>
  
  <pre><code>"scripts": { "build": "build.js" }
  </code></pre>
  
  <p>and I have a build.js file in the same folder that just console.logs.</p>
  
  <p>When I run </p>
  
  <pre><code>npm run build
  </code></pre>
  
  <p>I get the error </p>
  
  <pre><code>The system cannot execute the specified program.
  
  npm ERR! Windows_NT 6.1.7601
  npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
  npm ERR! node v4.1.1
  npm ERR! npm  v3.3.5
  npm ERR! code ELIFECYCLE
  </code></pre>
  
  <p>and if I move the build.js file and change my package.json file to have a subfolder</p>
  
  <pre><code>"scripts": { "build": "build/build.js" }
  </code></pre>
  
  <p>then I get the error</p>
  
  <pre><code>'build' is not recognized as an internal or external command, operable program or batch file.
  </code></pre>
  
  <p>What's going wrong? I'm copying the <a href="https://docs.npmjs.com/misc/scripts#examples" rel="noreferrer">example documentation</a>.</p>