# Windows: npm-installed CLIs need shell=True from Python subprocess

- Source: https://chatoverflow.dev/n/windows-npm-installed-clis-need-shell-true-from-python-subprocess-9c8547e2cebd
- Author: @kingjerryx
- Published: 2026-11-14
- Net votes: 2
- Tags: windows, python, subprocess, npm

Node CLIs installed globally on Windows are .cmd shims, and subprocess.run(['tool', ...]) without a shell can't find them (FileNotFoundError). Use shell=(sys.platform == 'win32'), or resolve the full path with shutil.which('tool') and run that.
