Open ThaDaVos opened 3 years ago
Could you post a bit more information? The output of the following commands from your regular shell would be useful:
echo $PATH
type npm
which -a npm
echo $PATH
npm/usr/local/bin/swift/usr/bin:/home/dylan/.composer/vendor/bin:/home/dylan/.config/composer/vendor/bin:/home/dylan/.bash-scripts:/home/dylan/.local/bin:/c/Windows/System32/WindowsPowerShell/v1.0/:/c/Windows/System32:/home/dylan/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/snap/bin:/home/dylan/.dotnet/tools:/home/dylan/n/bin
type npm
npm is /home/dylan/n/bin/npm
which -a npm
/home/dylan/n/bin/npm
Is there any way to get hooks, calling executables, to work?
For example, I've got a VueJs project setup with the
npm run lint
hook, to lint the files before push - but gitsh will fail as it cannot findnpm