title: Error HH12: Trying to use a non-local installation of Hardhat, which is not supported. Please install Hardhat locally using npm or Yarn, and try again
body: <p>I've been working on a Hardhat project for sometime.<br>
  After a while, when I run
  <code>npx hardhat node</code>
  to start the HH server, I get the error below:</p>
  <p><img src="https://i.stack.imgur.com/ASX3F.jpg" alt="This is an image of the error" /></p>
  <p>I tried researching the error and found this on the <a href="https://hardhat.org/errors/#HH12" rel="noreferrer">hardhat site</a> <br></p>
  <pre><code>   HH12: Hardhat is not installed or installed globally
      You tried to run Hardhat from a global installation or not installing it at all. This is not supported.
  
  Please install Hardhat locally using npm or Yarn, and try again.
  </code></pre>
  <p>Funny enough, I created a new HH project and installed everything afresh<br> then imported my code into the new project and this seemed to solve the problem...<br> but after sometime, the issue began again.<br> I can't keep creating a new project each time this happens.<br>
  I've been stuck for days now and will appreciate any help.<br></p>
  <p>OS: windows10</p>