how to install babel globally code example
Example 1: install babel command line
npm i -D @babel/core @babel/preset-env babel-loader
Example 2: install babel core
npm install --save-dev @babel/core
Example 3: babel cmd
babel src\app.js --out-file=public\scripts\app.js --presets=env,react --watch