title: Mac npm install permission denied
body: <p>I just got a new Mac laptop. To be honest, I am not very familiar with the Mac operating system. Now I am having a problem running npm install. I tried to solve the problem by running this command following this link, <a href="https://stackoverflow.com/questions/47252451/permission-denied-when-installing-npm-modules-in-osx">Permission denied when installing npm modules in OSX</a>. I could get into next step. Now the error is withing the project folder. Basically, it does not have the permission to the node_modules of the project folder which is on the desktop. When I run npm install again, I got this error.</p>
  
  <pre><code>npm ERR! path /Users/wai/Desktop/easy-eat-backend-laravel/node_modules/@coreui/coreui/node_modules
  npm ERR! code EACCES
  npm ERR! errno -13
  npm ERR! syscall access
  npm ERR! Error: EACCES: permission denied, access '/Users/wai/Desktop/easy-eat-backend-laravel/node_modules/@coreui/coreui/node_modules'
  npm ERR!  { [Error: EACCES: permission denied, access '/Users/wai/Desktop/easy-eat-backend-laravel/node_modules/@coreui/coreui/node_modules']
  npm ERR!   stack:
  npm ERR!    'Error: EACCES: permission denied, access \'/Users/wai/Desktop/easy-eat-backend-laravel/node_modules/@coreui/coreui/node_modules\'',
  npm ERR!   errno: -13,
  npm ERR!   code: 'EACCES',
  npm ERR!   syscall: 'access',
  npm ERR!   path:
  npm ERR!    '/Users/wai/Desktop/easy-eat-backend-laravel/node_modules/@coreui/coreui/node_modules' }
  npm ERR! 
  npm ERR! The operation was rejected by your operating system.
  npm ERR! It is likely you do not have the permissions to access this file as the current user
  npm ERR! 
  </code></pre>
  
  <p>I already updated the permission on the npm folder. What else do I have to do to sovle this error?</p>