babeljs - babel cli installed as local node module does not work: permission denied -


i can't run babel-cli local node modules folder.

i installed babel-cli in local node modules folder using:

npm install babel-cli --save-dev 

so not have install babel globally. can see installed in node_modules , added package.json file.

  "devdependencies": { "babel-cli": "^6.18.0" } 

when build using command

babel app.js -o build/app.js 

i message saying babel

the program 'babel' can found in following packages: * babel-1.4.0 * openbabel try: sudo apt-get install <selected package> 

i using ubuntu 14.4

i tried access babel through script adding

 "scripts": { "babelversion": "babel --version",  } 

when run command 'npm run babelversion' same error

sh: 1: babel: permission denied 

and , npm error exit status 126

how local babel (without installing globally) work?

i had same problem, found solution calling program locally, this:

./node_modules/babel-cli/bin/babel.js app.js -o build/app.js 

Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -