2019-12-31
How to fix EACCES errors with NPM on MacOS
An EACCES error from npm on macOS usually means a permissions issue with npm's directories. To fix this, change ownership of the directories with sudo chown -R \whoami` ~/.npmandsudo chown -R `whoami` /usr/local/lib/node_modules. After updating permissions, rerun the npm commands without sudo` to resolve the error.