title: Error when upgrade nodes to latest version on Macos
body: <p>Now I try to update Nodejs on Macos according to this <a href="https://stackoverflow.com/questions/11284634/upgrade-nodejs-to-the-latest-version-on-mac-os/19333717#19333717">guide</a>. However, one error is here</p>
  
  <p><a href="https://i.stack.imgur.com/E9cHr.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E9cHr.jpg" alt="error image"></a></p>
  
  <p>When I try to run <code>Sudo npm install -g n</code> again, another error comes up</p>
  
  <p><a href="https://i.stack.imgur.com/VaJvs.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VaJvs.jpg" alt="error image1"></a></p>
  
  <p>Could someone help me how to fix it?</p>