steelbrain / steelbrain/node-ssh
Different results with node-ssh and my terminal ssh connection
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1k
- Forks
- 94
- PR merge metrics
- No merged PRs in 30d
Description
Hi
I'm using node-ssh to run this command in a remote machine
nvm install node
When my code sends this command via ssh.execCommand('nvm install node') the response is bash: nvm: command not found
But when I personally connect to that server via my terminal, it just runs fine. Without any errors. why?
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names only ssh.execCommand('nvm install node') and no file or test. Compare the environment used by terminal SSH with the one used by execCommand, then determine whether the project needs a documented usage change or a code fix; completion criteria are not specified.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100