title: Angular 6 Uncaught ReferenceError: Buffer is not defined
body: <p>I am trying to migrate from 5 to 6 using <code>ng update</code> and I get an error</p>
  
  <pre><code>Uncaught ReferenceError: Buffer is not defined
      at Object../node_modules/amazon-cognito-identity-js/node_modules/crypto-browserify/helpers.js (helpers.js:2)
      at __webpack_require__ (bootstrap:81)
      at Object../node_modules/amazon-cognito-identity-js/node_modules/crypto-browserify/md5.js (md5.js:10)
      at __webpack_require__ (bootstrap:81)
      at Object../node_modules/amazon-cognito-identity-js/node_modules/crypto-browserify/create-hash.js (create-hash.js:3)
      at __webpack_require__ (bootstrap:81)
      at Object../node_modules/amazon-cognito-identity-js/node_modules/crypto-browserify/index.js (index.js:12)
      at __webpack_require__ (bootstrap:81)
      at Object../node_modules/amazon-cognito-identity-js/es/AuthenticationHelper.js (vendor.js:47207)
      at __webpack_require__ (bootstrap:81)
  </code></pre>
  
  <p>Local environment works well for creating the new angular project. I don't use Buffer. It is something behind the scenes</p>
  
  <p>Any ideas?</p>
  
  <p><strong>UPD</strong></p>
  
  <p>I was trying to update @types/node <code>npm install --save-dev @types/node</code></p>
  
  <pre><code>+ @types/node@8.9.5
  updated 1 package in 12.031s
  [!] 26 vulnerabilities found [36141 packages audited]
      Severity: 11 Low | 13 Moderate | 2 High
      Run `npm audit` for more detail
  </code></pre>
  
  <p>if I run <code>npm audit</code></p>
  
  <pre><code>npm ERR! code ENOAUDIT
  npm ERR! audit Your configured registry (https://registry.npmjs.org/) does not support audit requests.
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /Users/myname/.npm/_logs/2018-05-16T13_45_17_410Z-debug.log
  </code></pre>