npm cannot find module /@babel/code-frame code example
Example: Error: Cannot find module '@babel/core'
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