Terminal (Reworked 2025) not loading Node.js via NVM
I have PhpStorm configured with defaults on the main part and some plugins like IdeaVim and such.
I have configured the Languages & Frameworks > Node.js > Node Interpreter to point to my local instalation of NVM
In own terminal (Alacritty) which node points correctly to NVM node installation, and NVM is configured through ~/.bashrc that it itself is loaded via ~/.bash_profile
The only reason I can think of for why this is happening is that PhpStorm is running export PATH=/some/path/settings:$PATH after loading my bashrc and adding /usr/bin or /usr/local/bin to my path
Please help, than you.
Please sign in to leave a comment.
after checking inside PhpStorm its loading /bin/node
after running nvm use node, it swaps to the correct version of node, but this resets when launching a new terminal
Hello there, I think you need to add the correct node path to the path variable in
File | Settings | Tools | TerminalOr try using the login shell, which can also be configured in
File | Settings | Tools | Terminal. Just customize the command in the Shell path option by adding the -l flag, for example,bin/bash/ -land it is also worth unchecking theShell integrationcheckboxUnchecking the shell integration checkbox did the trick, thanks!