I tried all possible way to install babel-cli babel-preset-react
Things I tried npm install --save-dev babel-cli babel-preset-react
but when I check babel -h
It shows The program 'babel' can be found in the following packages:
I refer this question also but doesn't work Babel command not found
babel -h
inside scripts in package.jsonbabelh: babel -h
and run usingnpm run babelh
babel -h
but same errornpm run babel -h
babel -h
this command. but this not workingbabel src/app.js --out-file=public/scripts/app.js --presets=env,react --watch
The program 'babel' can be found in the following packages: