Leo BGM

Results 3 comments of Leo BGM

Sure. This is the result in my own terminal `/root/.nvm/versions/node/v17.2.0/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin` And this is what the app gets `/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin`

Thanks man. Yeah looks like this is the case. Why node-ssh acts differently? Isn't there a way to make its behavior like normal Linux terminal?

> If you want to understand the problem better, Google differences between login and non-login shell. With `execCommand` node-ssh acts as a non-login shell, just as if you ran `ssh...