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
In order to run the babel command, you need to either install babel globaly or run it from
package.json
by saving it in scriptsand run using
If you want to run the babel command directly, you need to install like