Will node run a locally installed version of a CLI if a global version is also installed?

If we have a global version of a CLI installed, and we install a different version as development dependency in a project, will node run the locally installed version rather than the globally installed version?