Missing Environment variables
See original GitHub issueI am not sure if the problem is simple-ssh or my configuration, so lets explain the problem.
I have a openSSH server that I want to connect with a node js client, using simple-ssh. When I connect to the server, I try to call npm, that is installed on the server, using exec but the simple-ssh can’t find npm (I try doing npm-v).
When I am connected with a real ssh client, I have no problem doing npm -v
Also, I export node js binary folder and they are visible in the $PATH env , but missing in the simple-ssh connection.
Any idea?
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
Missing environment variables - Stack Overflow
I am using the library https://cir.is/docs/overview to load my environment variables as follows: object EnvironmentLoader { val db: ...
Read more >Problems with Environment Variables
Environment variable is not set. If the error message states that the environment variable is not set, IT MEANS PRECISELY THAT ! The...
Read more >Environment variables missing and can't open advanced ...
1. Run c:\Windows\System32\systempropertiesadvanced.exe · 2. Click on Environment Variables and located PATH in System Variables · 3. Remove any duplicate entries
Read more >Missing environment variable "HOST" after build ... - GitHub
E_MISSING_ENV_VALUE: Missing environment variable "HOST". Steps executed: % npm run build % cd build % npm ci --production % node server.js.
Read more >Missing Environment Variables Error. - Atlassian Community
Solved: Hello, I have created Environments in deployments namely Development and Production which are using different aws accounts for ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Awesome! I’m glad I could help 😄
Thanks for your help, the second answer was my solution!! I had search too much for the node js/simple-ssh problem, but beginning my command with:
source /etc/profile;solved my problem.source /etc/profile;echo $PATHnow print the node js bin path. 👍