how to install babel code example

Example 1: install babel command line

npm i -D @babel/core @babel/preset-env babel-loader

Example 2: babel cmd

babel src\app.js --out-file=public\scripts\app.js --presets=env,react --watch

Example 3: what are the uses of babel js

npm install --save-dev @babel/core @babel/cli @babel/preset-env
npm install --save @babel/polyfill
Copy

Example 4: install babel language

$ sudo apt-cache search texlive french
 texlive-doc-fr - TeX Live: French documentation
 texlive-lang-french - TeX Live: French

$sudo apt-get install texlive-lang-french

Tags:

Misc Example