I have installed the babel-cli tool as explained by the Babel ['getting started'](http://babeljs.io/docs/setup/#babel_cli) page.

From a terminal inside my project folder:

```
npm install --save-dev babel-cli

```

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:

```
npm WARN enoent ENOENT: no such file or directory, open '/Users/MyName/Sites/Tutorials/Babel2/package.json

```

When trying to run babel, I get this:

```
babel src -d lib
-bash: babel: command not found

```

I have the latest version of nodejs/npm installed. I have run npm update -g, and I have edited my **.bash\_profile** file to include:

```
export PATH=$PATH:/Users/MyName/npm/bin
export PATH=/usr/local/share/npm/bin:$PATH

```

I have not experienced this with other npm tools such as browserify. Why is babel not recognized?