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.

0
4 comments

after checking inside PhpStorm its loading /bin/node

0

after running nvm use node, it swaps to the correct version of node, but this resets when launching a new terminal

0

Hello there, I think you need to add the correct node path to the path variable in File | Settings | Tools | Terminal

Or 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/ -l and it is also worth unchecking the Shell integration checkbox

 

1

Unchecking the shell integration checkbox did the trick, thanks! 

0

Please sign in to leave a comment.