title: Keep getting Error: Configuration property "vidly_jwtPrivateKey" is not defined
body: <p><a href="https://i.stack.imgur.com/txtwG.png" rel="nofollow noreferrer">Error Screenshot</a>[ I am using Node.js and have already set the enviroment varibale vidly_jwtPrivateKey. and try to retrieve it using config package using this command config.get('vidly_jwtPrivateKey')but i keep getting this error : </p>
  
  <blockquote>
    <p>throw new Error('Configuration property "' + property + '" is not
    defined'); Error: Configuration property "vidly_jwtPrivateKey" is not
    defined,</p>
  </blockquote>
  
  <p>i have been searching for hours , could you please suggest a solution. </p>
  
  <p>here is what my default.json file contains : </p>
  
  <pre><code>{
      "jwtPrivateKey" : ""
  }
  </code></pre>
  
  <p>and custom-environment-variables.json contain : </p>
  
  <pre><code>{
      "jwtPrivateKey" : "vidly_jwtPrivateKey"
  }
  </code></pre>
  
  <p>and i have already set vidly_jwtPrivateKey by exporting it in terminal (I use a Mac): </p>
  
  <pre><code>export vidly_jwtPrivateKey=mySecureKey.
  </code></pre>
  
  <p>I have tried this , but it doesn't work : </p>
  
  <blockquote>
    <p><a href="https://stackoverflow.com/questions/56736149/error-configuration-property-mongouri-is-not-defined">Error: Configuration property &quot;mongoURI&quot; is not defined</a></p>
  </blockquote>
  
  <p>Here is the code I am suing to retrieve the environment variable: </p>
  
  <pre><code>if (!config.get('vidly_jwtPrivateKey')){
    console.error('FATAL ERROR : jwtPrivateKey is not defined '),
    process.exit(1);
  };
  </code></pre>
  
  <p>Thanks a lot</p>