title: Babel command not found
body: <p>I have installed the babel-cli tool as explained by the Babel <a href="http://babeljs.io/docs/setup/#babel_cli" rel="noreferrer">'getting started'</a> page.</p>
  
  <p>From a terminal inside my project folder:</p>
  
  <pre><code>npm install --save-dev babel-cli
  </code></pre>
  
  <p>After this, there is a node_modules directory with a babel-cli folder, but there is no package.json created. npm also shows the following error:</p>
  
  <pre><code>npm WARN enoent ENOENT: no such file or directory, open '/Users/MyName/Sites/Tutorials/Babel2/package.json
  </code></pre>
  
  <p>When trying to run babel, I get this:</p>
  
  <pre><code>babel src -d lib
  -bash: babel: command not found
  </code></pre>
  
  <p>I have the latest version of nodejs/npm installed. I have run npm update -g, and I have edited my <strong>.bash_profile</strong> file to include:</p>
  
  <pre><code>export PATH=$PATH:/Users/MyName/npm/bin
  export PATH=/usr/local/share/npm/bin:$PATH
  </code></pre>
  
  <p>I have not experienced this with other npm tools such as browserify. Why is babel not recognized?</p>