The trend for package managers seems to be increasingly installing packages locally, in the directory of the current project.
C: exclusively system packages
Python: system or 'virtual' (local) packages
JS, Rust: exclusively local packages
Wilfred Hughes