title: why babel stores .babel.json in USERPROFILE path
body: <p>I'm running a nodejs app on azure web apps and i'm trying to integrate babel using npm in it. The problem is that babel is trying to acccess a file at </p>
  
  <blockquote>
    <p>%USERPROFILE%</p>
  </blockquote>
  
  <p>named .babel.json, a file that doesn't exist. This is most likely installed by:</p>
  
  <pre><code>npm install -g babel
  </code></pre>
  
  <p>On azure web apps, i can't seem to find it at all (even after running <code>npm install -g babel</code> in kudu for the site). </p>
  
  <p>I copied the file in <code>%USERPROFILE%</code> myself to <code>%USERPROFILE%</code> using kudu but on web app restart the file disappears.</p>
  
  <p>Is there a way to make babel work on web apps?</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I did omit some things. The error appeared when i tried load <code>babel/register</code>.</p>
  
  <pre><code>require('babel/register')({
    optional: ["es7.asyncFunctions"]
  });
  </code></pre>
  
  <p>and the actual error i see in the streaming logs is</p>
  
  <blockquote>
    <p>Application has thrown an uncaught exception and is terminated: Error:
    ENOENT, no such file or directory 'D:\local\UserProfile.babel.json'
        at Object.fs.openSync (fs.js:438:18)
        at Object.fs.writeFileSync (fs.js:977:15)
        at save (D:\home\site\wwwroot\node_modules\babel\node_modules\babel-core\lib\api\register\cache.js:35:19)
        at process._tickCallback (node.js:419:13)
        at Function.Module.runMain (module.js:499:11)
        at startup (node.js:119:16)
        at node.js:906:3</p>
  </blockquote>
  
  <p>the project is on <a href="https://github.com/badescuga/testbabelrequire" rel="noreferrer">Github</a></p>