How do you upgrade the version of nodejs available from the terminal?
I have webstorm version 2017.1.4 installed on my windows 7 machine. When I do a node -v from the webstorm terminal it tells me I have v0.12.7. How do I update it?
Please sign in to leave a comment.
haven't got what you mean, sorry... To update Node.js, you have to download a new version from https://nodejs.org/en/download/; not sure how it is related to WebStorm terminal though
A picture paints a thousand words.
Hmm... And what is this 'Node,js command prompt'? what is the result of `node -v` in windows cmd console (standard Windows command prompt)?
Daniel, is this what you are looking for?
Thanks Branden - I thought you had it but no luck. I could see the version and I could select the install location for the right version of node but I just can't get the terminal in webstorm to use that version.
Same problem here. This time in Mac OS X High Sierra.
Node v9.3.0 (installed via nvm)
In the webstorm Terminal it keeps saying Node v8.1.0
I set up the same menu it shown above in the Webstorm settings and changed to v9.3.0.
The terminal still says v8.3.0
Quit WebStorm and restarted. No. Nothing All is the same...so... What's happening? How do I fix it?
what shell is shosen in Preferences | Tools | Terminal? please attach a screenshot of this page.
And what is the result of `node -v` in OSX terminal?
Hi Elena,
I've been using JetBrains tools for years and they are really good! Thank you and to the developers, you are doing great job!
So I'm sure I'm the one who is doing something wrong.
Any way, in `Preferences/Tools/Terminal` I chose `/bin/bash`. I tried with and without shell integration (the last option in the preferences painel).
Nothing worked, it seems that there is no communication between Mac OS and WS. And that's new to me since in all other tools from JetBrains it works perfect!
If I had to send a picture of this, it would be like Daniel's picture post here at
Please NOTE: Minutes ago I solved this by going directly to the WS Terminal and I repeated there the command I've already issued on Mac Terminal: `nvm use v9.3.0`. It worked and now the angular cli (v6) is working fine from within WebStorm.
HOWEVER, in WebStorm it only lasts one session! So I verified the same procedure in the Mac OS Terminal and it is the same. If I quit the Mac OS Terminal app and go in again it returns to the previous node version: I conclude therefore it is something of my configuration that is causing the problem. But the apparent lack of communication between OS and WebStorm is still a mystery to me.
Can you help please?
>But the apparent lack of communication between OS and WebStorm is still a mystery to me.
Can't see a lack of communication here. If
nvm useonly sets a version for current shell session, you can't expect Webstorm to recognize it.AFAIK,
nvm useisn't meant to persist - it's only for the lifetime of the shell.see https://stackoverflow.com/questions/24585261/nvm-keeps-forgetting-node-in-new-terminal-session for some hints
Elena,
Thank you for your answer. However how can I fix this?
Please see in the images my settings in web storm:
Why the WS Terminal keeps saying:
Thanks
Node.js interpreter chosen in WebStorm preferences has absolutely nothing to do with the system default interpreter; the built-in terminal, being a wrapper around the chosen shell, uses the version taken from shell environment (.bashrc, etc)
I also encountered this problem in Windows 10 and was able to solve it by going to root npm directory shown when highlighting any of the packages in command line and executing "npm update". All packages will be updated. In my case, I executed it in c:\Users\Yamato\AppData\Roaming\npm
One more thing, I noticed this issue because of yarn. I already had 1.7 installed but the Webstorm terminal was still using Yarn 1.0.7 and I got errors with yarn commands. I removed yarn from the list using dash "-" and surprisingly, the terminal used the correct yarn 1.7. I'm not really sure now what that Node.js and NPM package list is really for.
As mentioned above, the webstorm terminal uses the same version of node that any new shell would use.
If you are using nvm, it keeps a separate default version that may be different than whatever you set for the current session using "nvm use". So instead use the command:
nvm alias default 7.9
Now 7.9 will be used for all new shells, including the webstorm terminal, regardless of what is set for the webstorm IDE.