title: Cannot find module '@babel/parser'
body: <p>I am no longer able to transpile my codebase when running <code>babel</code>. I made. It wasn't happening before and I am unable to figure out why. This only happened when I pulled remote master branch, which had <code>yarn.lock</code> conflicts. I resolved conflicts with the <code>yarn</code> commands. </p>
  
  <p>here is part of my <code>package.json</code></p>
  
  <pre><code>{
    "devDependencies": {
      "@babel/cli": "^7.1.0",
      "@babel/core": "^7.1.2",
      "@babel/plugin-proposal-class-properties": "^7.0.0",
      "@babel/plugin-proposal-decorators": "^7.0.0",
      "@babel/plugin-proposal-export-default-from": "^7.0.0",
      "@babel/plugin-proposal-export-namespace-from": "^7.0.0",
      "@babel/plugin-proposal-function-sent": "^7.0.0",
      "@babel/plugin-transform-runtime": "^7.1.0",
      "@babel/polyfill": "^7.0.0",
      "@babel/preset-env": "^7.1.0",
      "@babel/preset-react": "^7.0.0",
      "@babel/register": "^7.0.0",
      ...
    }
  }
  </code></pre>
  
  <p>Running <code>babel src -d build</code> results in the following error</p>
  
  <pre><code>{ Error: Cannot find module '@babel/parser'
      at Function.Module._resolveFilename (module.js:548:15)
      at Function.Module._load (module.js:475:25)
      at Module.require (module.js:597:17)
      at require (internal/module.js:11:18)
      at _parser (/Users/mohammadmohammad/Dev/work/procore/hydra_clients/budgetViewer/node_modules/@babel/core/lib/transformation/normalize-file.js:59:16)
      at parser (/Users/mohammadmohammad/Dev/work/procore/hydra_clients/budgetViewer/node_modules/@babel/core/lib/transformation/normalize-file.js:170:18)
      at normalizeFile (/Users/mohammadmohammad/Dev/work/procore/hydra_clients/budgetViewer/node_modules/@babel/core/lib/transformation/normalize-file.js:138:11)
      at runSync (/Users/mohammadmohammad/Dev/work/procore/hydra_clients/budgetViewer/node_modules/@babel/core/lib/transformation/index.js:44:43)
      at runAsync (/Users/mohammadmohammad/Dev/work/procore/hydra_clients/budgetViewer/node_modules/@babel/core/lib/transformation/index.js:35:14)
      at /Users/mohammadmohammad/Dev/work/procore/hydra_clients/budgetViewer/node_modules/@babel/core/lib/transform-file.js:58:36 code: 'MODULE_NOT_FOUND' }
  </code></pre>
  
  <p>I also tried deleting <code>node_modules</code> and run <code>yarn install</code> with no luck. </p>