title: cannot find name 'require' in angular 7(typescript 3.1.3)
body: <p>My question is why this error shown? </p>
  
  <blockquote>
    <p>ERROR in src/app/p2p/p2p.component.ts(14,16): error TS2580: Cannot
    find name 'require'. Do you need to install type definitions for node?
    Try <code>npm i @types/node</code>.</p>
  </blockquote>
  
  <p>I have install</p>
  
  <pre><code> @types/node
  in app/tsconfig.app.json have add 
  "types": [
      "node" 
    ],
    "typeRoots": [ 
    "../node_modules/@types"
   ]  
  </code></pre>
  
  <p>but there is error cannot find 'require'</p>