title: How to change ownership using chown, so that I can update serverless globally?
body: <p>I think this is a very basic issue I am getting, but I am unsure how to proceed from here due to my lack of knowledge using <code>chown</code>.</p>
  
  <p>I am trying to run <code>sudo npm install serverless -g</code> but am getting the following feedback on my CLI:</p>
  
  <pre><code>┌───────────────────────────────────────────────────────────────┐
  │                serverless update check failed                 │
  │              Try running with sudo or get access              │
  │             to the local update config store via              │
  │ sudo chown -R $USER:$(id -gn $USER) /Users/myUsername/.config │
  └───────────────────────────────────────────────────────────────┘
  </code></pre>
  
  <p>I am not entirely sure what exactly the command
  <code>sudo chown -R $USER:$(id -gn $USER) /Users/myUsername/.config</code>
  means.</p>
  
  <p>I'd like to be sure that I am not going to break some configurations for <code>npm</code>.</p>
  
  <p>Could someone point out what exactly I am looking at and help me understand the syntax?</p>
  
  <p>Some clarifications would be amazing around:
  -R
  -id -gn</p>
  
  <p>Trying to change the $USER with myUsername in different combinations results in no success either, as I am getting the same problem again.</p>
  
  <p>Some pointers would be great, Thanks!</p>