Using WSL (Windows Subsystem for Linux) to run Node in WebStorm

I have figured out how get the new "Bash.exe" shell to work inside of WebStorm.
Now, I would like to use the version of node I have installed on the WSL. It's currently installed at:

   C:\Users\winuser\AppData\Local\lxss\home\linuxuser\.nvm\versions\node\v4.5.0\node

I tried telling WebStorm that was the location of my Node interpreter, but it says, "Unknown Node.js version"

With npm installed at:

  C:\Users\winuser\AppData\Local\lxss\home\linuxuser\.nvm\versions\node\v4.5.0\lib\node_modules\npm\bin\npm-cli.js

When I tried to run do an npm install from the UI, it uses "runnerw.exe" as the shell, so I would have to change that at a minimum.

I know the whole WSL is still new, but is this a feature that JetBrains is planning on supporting? It would make me seriously consider using Windows for development again...

0
2 comments

WSL is not currently supported, please follow https://youtrack.jetbrains.com/issue/WEB-22794 for updates. see https://www.reddit.com/r/bashonubuntuonwindows/comments/4wzxr5/accessing_wsl_programs_like_npm_node_etc_from/ - you can create bash script that runs the corresponding WSL command and use this script as a Node interpreter...

 

0

 Its now fixed on ``2018.2`` :)

1

Please sign in to leave a comment.