title: Module build failed: Error: Cannot find module '@babel/core'
body: <p>So I am sort of new to webpack since I never created my own workflow and I am trying to set up an enviorement to compile ES2015+ JS and SCSS code now for the first time. For some reason when I try to compile my webpack I get the error <code>Module build failed: Error: Cannot find module '@babel/core'</code>. Yet I have installed it with <code>npm install</code></p>
  
  <p><strong>Webpack.config.js</strong></p>
  
  <pre><code>module.exports = {
      entry: './components/js/app.js',
      output: {
          filename: './dist/main.js'
      },
      module: {
          loaders: [
              {test: /\.js$/, loader: "babel-loader", exclude: /node_modules/},
              {test: /\.scss$/, loader: "style-loader!css-loader!sass-loader"}
          ],
  
  
      }
  }
  </code></pre>
  
  <p><strong>.babelrc</strong></p>
  
  <pre><code>{
      "presets": [
          "@babel/preset-env"
      ]
  }
  </code></pre>
  
  <p><strong>Package.json</strong></p>
  
  <pre><code>{
    "name": "webpack-env",
    "version": "1.0.0",
    "description": "Webpack",
    "main": "components/js/app.js",
    "scripts": {
      "build": "webpack"
    },
    "author": "",
    "license": "ISC",
    "devDependencies": {
      "@babel/preset-env": "^7.0.0-beta.39",
      "babel-core": "^6.26.0",
      "babel-loader": "^7.1.2",
      "css-loader": "^0.28.5",
      "node-sass": "^4.5.3",
      "sass-loader": "^6.0.6",
      "style-loader": "^0.18.2",
      "webpack": "^3.4.1"
    },
    "dependencies": {}
  }
  </code></pre>
  
  <p>Is there something I am missing?</p>