Solved: Error: EACCES: permission denied
EACCES: permission denied
If you encounter “Error: EACCES: permission denied” while installing Typescript or any other program, it is due to permission problems.
npm ERR! Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’
In short, that means you do not have permission to install.
How to solve this problem
The solution is exactly quite simple, you just have to type it this way “sudo npm install -g typescript” and it will work.