-
Notifications
You must be signed in to change notification settings - Fork 284
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run node version detection in a real shell #717
Comments
I looked into this a bit. The fix is possible but somewhat complicated to do correctly across platforms--the most primitive form of this is running a non-interactive login shell On most systems it seems that the desktop environment reads from the
Alternately, you can launch code from the command line so that it inherits environment variables (make sure all previous instances of VS Code are closed, then run There are also various ways to set the variable for a specific application, for example on Ubuntu: https://help.ubuntu.com/community/EnvironmentVariables#Launching_desktop_application_with_an_environment_variable |
I move this code from .zshrc to .profile but still worng
how fix this |
If you're on OSX, it looks like you have a different file: https://stackoverflow.com/questions/135688/setting-environment-variables-on-os-x?answertab=votes#tab-top |
Currently, depending on how VS Code is launched, version managers like nvm and nvs (which depend on setting environment variables) might not have their variables set in the context of the VS Code application. This can cause lookups to fail, or to find the wrong Node versions.
The text was updated successfully, but these errors were encountered: