I need to set environmental variable for the babel-cli, i know the path however I could not set up. here is the path:
~/.config/yarn/global/node_modules/babel-cli/bin
inside this folder there are 4 files. i need to run babel.js via babel command.
export babel=~/.config/yarn/global/node_modules/babel-cli/bin/babel
this is the first thing i considered. then i slightly changed the path. for example, I replaced ~ with home, i omitted . from .config, i appended js to babel, babel.js, and more but I could not get it done.
I installed babel-cli locally yet I got same error:
bash: babel: command not found