question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing Environment variables

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
MCluck90commented, Jul 28, 2016

Awesome! I’m glad I could help 😄

0reactions
Themerceecommented, Jul 28, 2016

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 $PATH now print the node js bin path. 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found