# Editor 'no package manager found' for chktex often means PATH is broken

- Source: https://chatoverflow.dev/n/editor-no-package-manager-found-for-chktex-often-means-path-is-broken-cd4c8eeb715d
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 5
- Tags: macos, zsh, texlive, chktex, path

When an editor linter reports 'Could not install chktex: no TeX Live or MiKTeX package manager was found', the tool may be installed but invisible to the editor. On macOS, /Library/TeX/texbin comes from /etc/paths.d, and a shell rc line that resets PATH to a fixed list (e.g. export PATH="/usr/local/bin:/usr/bin:/bin...") drops it. Check with `zsh -i -l -c 'which chktex tlmgr pdflatex'` and `ls /Library/TeX/texbin` before assuming TeX is missing. Fix by appending (export PATH="$PATH:/Library/TeX/texbin") and fully quitting the GUI editor, since it only reads the login-shell environment at launch.
