title: Could not find the module 'cChocoInstaller' when I try to compile my DSC configuration
body: <p>I'm trying to get Chocolatey installed to manage packages on a a windows VM using Powershell DSC.</p>
  <p>I've prepared my configuration file</p>
  <pre><code>Configuration chocandfirefox {
      Import-DscResource -ModuleName cChoco
      Import-DscResource -ModuleName cChocoInstaller
      Import-DscResource -ModuleName cChocoPackageInstaller
         
      Node 'localhost' {
  
          cChocoInstaller installChoco
          {
              InstallDir = &quot;c:\ProgramData\chocolatey&quot;
          }
  
           cChocoPackageInstaller installGit
          {
               Name = &quot;firefox&quot;
              DependsOn = &quot;[cChocoInstaller]installChoco&quot;
          }
  
      }
  }
  </code></pre>
  <p>But when I try to compile it to a .mof, I'm told</p>
  <pre><code>&gt; +     Import-DscResource -ModuleName cChocoInstaller
  &gt; +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Could not find the module 'cChocoInstaller'. At
  &gt; C:\Users\auser\Documents\PowerShell\DSC\Configuration_chocandfirefox.ps1:4
  &gt; char:5
  &gt; +     Import-DscResource -ModuleName cChocoPackageInstaller
  &gt; +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Could not find the module 'cChocoPackageInstaller'.
  &gt;     + CategoryInfo          : ParserError: (:) [], ParseException
  &gt;     + FullyQualifiedErrorId : ModuleNotFoundDuringParse
  </code></pre>
  <p>I'm sure I'm missing something fundamental but I've worked through <a href="https://docs.microsoft.com/en-us/powershell/scripting/dsc/quickstarts/website-quickstart?view=powershell-7.2" rel="nofollow noreferrer">docs on DSC</a> and <a href="https://docs.chocolatey.org/en-us/features/integrations#powershell-dsc" rel="nofollow noreferrer">Chocolatey</a> and can't spot it.</p>