Are you using any Debian based linux machine ?
- If you say Yes, you might face the permission issue with NPM.
Issue is every time I run npm command it's getting EACCESS error.
It means I have to run the command as a super user mode, but I don't like that.
I have been facing this issue from couple of days.
Finally, I decided to fix this issue.
Let's see how did I fix the issue.
There are couple of ways to fix this issue:
- If you say Yes, you might face the permission issue with NPM.
Issue is every time I run npm command it's getting EACCESS error.
It means I have to run the command as a super user mode, but I don't like that.
sudo npm install [module name]
I have been facing this issue from couple of days.
Finally, I decided to fix this issue.
Let's see how did I fix the issue.
There are couple of ways to fix this issue:
- Change the permission to npm's default directory.
- Change npm's default directory to another directory.
- Install node with a package manager that takes care of this for you.