Solved: Error: EACCES: permission denied

Error: EACCES: permission denied featured

How to solve Error: EACCES: permission denied

If you encounter “Error: EACCES: permission denied” while installing Typescript or any other program, it is due to permission problem.

How to solve this problem

  1. Press Command + Shift + C (to open the computer directory)
    Error EACCES permission denied
  2. Press Command + Shift + . (to view all the hidden files)
    Error EACCES permission denied 2
  3. Go to the directory “/usr/local/lib/node_modules”
    Error EACCES permission denied 3
  4. Click on the folder and right click Get info
    Error EACCES permission denied 4
  5. Click the lock at the bottom right
    Error EACCES permission denied 5
  6. Key in your window password to unlock
    Error EACCES permission denied 6
  7. Check both the value of Wheel and Everyone to Read & Write
    Error EACCES permission denied 7
  8. Go back to your terminal and try to install the Typescript again
    Error EACCES permission denied 8
  9. Check back both the value of Wheel and Everyone to Read Only and lock back
    Error EACCES permission denied 9

 

Comments