title: Cannot load a package using NPM - local certificate error
body: <p>Apologies if this is a repeat question, but I am new to this. I have installed nodeJS and am trying to install hardhat. I have a Windows 10 laptop.</p>
  <p>I followed the instructions here: <a href="https://hardhat.org/tutorial/setting-up-the-environment" rel="nofollow noreferrer">https://hardhat.org/tutorial/setting-up-the-environment</a></p>
  <p>I am trying to run the following code:</p>
  <pre><code>mkdir hardhat-tutorial
  cd hardhat-tutorial
  npm init --yes
  npm install --save-dev hardhat
  </code></pre>
  <p>Then I get the following errors:</p>
  <pre><code>npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
  npm ERR! errno UNABLE_TO_GET_ISSUER_CERT_LOCALLY
  npm ERR! request to https://registry.npmjs.org/hardhat failed, reason: unable to get local issuer certificate
  </code></pre>
  <p>When I search this online it says to try the following solutions:</p>
  <pre><code>npm config set strict-ssl false
  </code></pre>
  <p>OR</p>
  <pre><code>npm config set registry http://registry.npmjs.org/
  </code></pre>
  <p>I've done both and rebooted the PC and it doesn't make a difference. Anyone got any ideas of what I can do to resolve this?</p>
  <p>Thanks
  John</p>