I can't run babel-cli from my local node modules folder.
I installed babel-cli in my local node modules folder using:
npm install babel-cli --save-dev
So that I do not have to install babel globally. I can see it installed in node_modules and is added to the package.json file.
"devDependencies": {
"babel-cli": "^6.18.0"
}
When I build using the command
babel app.js -o build/app.js
I get a message saying babel
The program 'babel' can be found in the following packages:
* babel-1.4.0
* openbabel
Try: sudo apt-get install <selected package>
I am using Ubuntu 14.4
I tried to access the babel through the script by adding
"scripts": {
"babelversion": "babel --version",
}
when I run the command 'npm run babelversion' I get the same error
sh: 1: babel: Permission denied
and and NPM error with exit status 126
How do I get a local babel (without installing it globally) to work?