npm install --save-dev @babel/core @babel/preset-env
For those wanting to use babel-loader 8+: it requires Babel 7.x,, which is to be installed as the '@babel/core' package instead of 'babel-core'. In other words, run: >npm install --save-dev @babel/core