title: Cant compile solidity files using correct Solc version
body: <p>when I try to run my contracts by using:</p>
  <blockquote>
  <p>truffle migrate --network infura</p>
  </blockquote>
  <p>I get thrown an error saying all my files require a higher pragma solidity version, in the error it says I'm currently using solc 0.5.16 yet I've ran</p>
  <blockquote>
  <p>npm uninstall</p>
  </blockquote>
  <p>and then</p>
  <blockquote>
  <p>install</p>
  </blockquote>
  <p>and when I run</p>
  <blockquote>
  <p>NPM list or solcjs --version</p>
  </blockquote>
  <p>it shows solc@0.8.4, could anyone help me identify the issue thanks.</p>