I have a package.json
which includes a "bin": "./bin/myexecutable"
declaration.
After running npm install
from within that same folder I can do this $ myexecutable
and myexectubale
runs.
myexecutable
is only available when I am in that directory, and not any subdirectories. I use oh-my-zsh normally but the same behaviour happens if I use bash. My $PATH variable does not include the binary.
How is myexecutable
automatically made available to the shell after npm install
?