npm install @babel/core @babel/preset-env @babel/preset-react code example
Example 1: install babel preset env
npm install --save-dev @babel/preset-env
Example 2: npm i -D @babel/core @babel/preset-env babel-loader
npm i -D @babel/core @babel/preset-env babel-loader