-
Notifications
You must be signed in to change notification settings - Fork 665
Nodejs is installed in WSL. How to set up the node path ? Thanks #397
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Just reset to the setting to the default value, which is Since I believe in the WSL environment, the node executable is in your PATH env already |
I guess it may be a path problem: I've got this:
This is an obvious wrong path to look for the leetcode command, which has been installed globally. So, any configuration to override this path ? |
Can you provide your extension settings? |
"leetcode.useWsl": true,
"leetcode.nodePath": "node",
"leetcode.defaultLanguage": "javascript",
"leetcode.showLocked": true,
"leetcode.showCommentDescription": true,
"leetcode.outputFolder": "/mnt/d/leetcode",
"leetcode.workspaceFolder": "/mnt/d/leetcode", |
What if set the "leetcode.outputFolder" to empty? |
Still the same error. Weird. It's the path issue for sure. I guess it is either a minor bug, or a line of configuration. Is there any way for me to debug it in my local dev enviroment? Thanks. |
@medmin It would be great if you would like to offer some help for this issue. Debugging the extension is very simple, just:
That's it. |
@medmin The new release contains a fix of the WSL path issue. Could you have a try to see if the problem solved? |
Before you submit an question we recommend you to check out the DOCUMENT first.
You can also find more information in:
💬 Questions and Help
Please outline the questions.
Hi,
First thing first, thanks for the awesome plugin!
According to the documentation, I need to " Specify the Node.js executable path. for example, C:\Program Files\nodejs\node.exe".
However, I install nodejs in my WSL, Ubuntu 16.04 LTS, to be precise. So, there is not a node path for "node.exe".
But according to the solved issue #46 , your plugin does support WSL.
So, I am confused. How do I use this awesome pluin while I am using WSL and have installed Nodejs in WSL? Thanks.
The text was updated successfully, but these errors were encountered: