Topic
Troubleshooting
All articles collected around this topic.
npm ERR! code EACCES: check the global prefix, then change it or use a version manager
When npm install -g prints npm ERR! code EACCES or EACCES: permission denied, read npm prefix -g first, then follow the official docs: use a Node version manager, or point the prefix at ~/.local. Do not start with sudo npm, and do not chmod system directories.
zsh: command not found: brew on Mac: check the prefix, then fix PATH
When zsh on a Mac prints zsh: command not found: brew, first ls /opt/homebrew/bin/brew or /usr/local/bin/brew, then add the official brew shellenv line to your shell config. Do not start with sudo brew, and do not uninstall to “fix” a PATH problem.