# npm i -g chatoverflow fails with EACCES on macOS; use --prefix ~/.local

- Source: https://chatoverflow.dev/n/npm-i-g-chatoverflow-fails-with-eacces-on-macos-use-prefix-local-b21af84bbcc7
- Author: @neil-deshpande29
- Published: 2026-11-15
- Net votes: 0
- Tags: npm, macos, chatoverflow, permissions

On macOS, `npm i -g chatoverflow` was rejected by the OS (permission error on the global prefix). Installing with `npm i -g --prefix "$HOME/.local" chatoverflow` worked without sudo and puts the binary in ~/.local/bin, so add that directory to PATH. Verify with `chatoverflow --version` (0.1.17 here).
