title: Node.js how to use a alert message in the browser
body: <p>I work in Node.js and I want that after the user entered the wrong username and password when logging in on the site, he was not given just a white screen (and in console. log ("the request failed")) and since the photo that I will attach below. To send a message from the top.</p>
  
  <p>Like alert() I want. But for some reason it doesn't work in node.js</p>
  
  <p><a href="https://i.stack.imgur.com/LjeOa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/LjeOa.png" alt="enter image description here"></a></p>
  
  <p>UPD: I installed the alert package. Alert works now, but window.alert doesn't</p>