Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

When using nvm to manage your node versions, should you point webstorms node interpreter to it?

When you switch to the nvm to manage your node versions, should you point your node interpreter to that one?

ie from /usr/bin/node to the ~/.nvm/v.xxx one

I ask because I'm running into some issues with webstorm when trying to debug node stuff now.

like image 228
FutuToad Avatar asked Jun 13 '14 14:06

FutuToad


3 Answers

Best thing I've found so far is to add each version to Default 'Node.js and NPM' Settings (rather than in individual Project settings). Then when creating new projects, or updating existing ones, you can select that version from the dropdown instead of having to recreate it for each project.

But it would be nice if the NodeJS Plugin would look for nvm and integrate with it. Or if nvm would create symlink for /usr/bin/node and update that when you change the version.

like image 130
user3685621 Avatar answered Nov 09 '22 15:11

user3685621


Yes, you need to explicitly set the Node Interpreter to the version you'd like to use

like image 26
lena Avatar answered Nov 09 '22 14:11

lena


You should not need to do that, it seems it was a bug that was identified and reported. A fix will be released in the coming 2016.1.3 EAP version of WebStorm.

https://youtrack.jetbrains.com/issue/WEB-21558

like image 1
zenw0lf Avatar answered Nov 09 '22 14:11

zenw0lf