title: NPM build script doesn't run
body: <p>I'm trying to run <code>babel</code> as a build step in my project, but it doesn't seem to work.</p>
  
  <p>My <code>package.json</code> looks like this:</p>
  
  <pre><code>{
    "name": "module-name",
    "version": "1.0.0",
    "description": "My Module",
    "main": "build/index.js",
    "scripts": {
      "test": "karma start",
      "build": "./node_modules/.bin/babel src -d build"
    },
    "author": "",
    "license": "ISC",
    "devDependencies": {
      "babel-cli": "^6.23.0",
      "babel-preset-env": "^1.1.8"
    }
  }
  </code></pre>
  
  <p>And <code>.babelrc</code>, in the same directory, looks like this:</p>
  
  <pre><code>{
    "presets": ["env"]
  }
  </code></pre>
  
  <p>The command <code>npm test</code> works fine and the Karma tests run. But when I use <code>npm build --verbose</code>, I just get the following output:</p>
  
  <pre><code>npm info it worked if it ends with ok
  npm verb cli [ 'C:\\Program Files\\nodejs\\node.exe',
  npm verb cli   'C:\\Users\\Peter\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
  npm verb cli   'build',
  npm verb cli   '--verbose' ]
  npm info using npm@3.10.2
  npm info using node@v6.9.3
  npm verb exit [ 0, true ]
  npm info ok
  </code></pre>
  
  <p>But the Babel command did not run and the build directory is not created. However, running the command <code>./node_modules/.bin/babel src -d build</code> directly from the command line works perfectly.</p>
  
  <p>Any ideas what might be causing the problem?</p>