Find executables installed locally by npm, yarn, composer, stack, pip, gem...
When we use packages like flycheck, company, lsp we often install the tools locally in a specific version using a package manager. These packages often only look for a globally installed executable which might not be what we want.
This package provides a uniform interface for setting up paths to executables installed locally (meaning not system-wide).
To find the
flow binary installed by
You can substitute
"flow" with any binray you want.
The general pattern is:
(defun find-local-executable-PLATFORM (binary &optional use-global-fallback))
On top of that, we support many popular packages out of the box. For
example, to set up paths for packages relying on
"flow" in nodejs,
This will configure paths for (among others)
The general pattern is
(defun find-local-executable-PLATFORM-setup-BINARY ())
Following is an exhaustive list of supported platforms. If you don't see your favorite platform, please open an issue or even better submit a pull request!
nodejs [via npm, yarn]
typescript [via npm, yarn]
php [via composer]