Nodejs:Resolving EACCES permissions errors when installed from .pkg

I am a super fan of installing tools if a .pkg or .dmg is available instead of using tools like homebrew or nvm. Things worked well but recently I started getting errors when I tried to update some of my other node packages specifically the below error Error: EACCES: permission denied, access ‘/usr/local/lib/node_modules’ I then found some solutions here https://docs.npmjs.com/resolving-eacces-permissions-errors-when-installing-packages-globally, where they mentioned reinstall of node using nvm or to change npm default directory. I then chose to go with nvm which seemed easier, but I encountered a problem, how to uninstall the existing nodejs which I installed via pkg. …

Continue Reading