-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Integrated terminal does not see Node from NVM #48576
Comments
(Experimental duplicate detection) |
Sorry code bot, but that issue has nothing in it. |
I too am having this issue.
So, in my case, to fix it, I created a new ".bashrc" file, and edited the vs code preference as follows:
In my custom ".bashrc4vscode", I removed all references to nvm (and also all exported variables), as I realized these were already set and valid. Anyway, hope this helps! |
This is the default setting on mac:
It means basg_profile will run, not bashrc. Does changing it to |
@Tyriar I confirm that changing to [] fix this issue |
@raulcesar I just wrote an FAQ on the prefix issue, check it out here for the proper way to fix: https://github.com/Microsoft/vscode-docs/blob/master/docs/editor/integrated-terminal.md#why-is-nvm-complaining-about-a-prefix-option-when-the-integrated-terminal-is-launched |
@Tyriar Thanks for the information. I will try to find the offending instance of npm and fix it correctly. |
@Tyriar that completely resolved my nvm/vscode issues. Thank you! |
After installing NVM and uninstalling node from homebrew my OS terminal is working normally, but the VS code terminal does not see node.
I am using this setting, but disabling it doesn't fix the issue
OS Terminal
VS Code Terminal
My
.bashrc
contains thisI have run
nvm alias default lts/carbon
in both terminals, the command works. If I runnvm use node
in the VS code terminal node will work for that session, but new shells are still missing node. Its like VS Code never loads nvm.Clearly VS Code is remembering the homebrew node installation, but I don't know how. Its not in the
bash_profile
orbashrc
, and the nvm stuff IS in there. Where else does VS Code load this from? Where else does VS code differ from the OS shell?The text was updated successfully, but these errors were encountered: