Skip to content

Error: The environment doesn't meet requirements. #322

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

Closed
pgr2015 opened this issue May 15, 2019 · 6 comments
Closed

Error: The environment doesn't meet requirements. #322

pgr2015 opened this issue May 15, 2019 · 6 comments

Comments

@pgr2015
Copy link

pgr2015 commented May 15, 2019

Hi, I am facing setting problem, leetcode.XXX are all not found.

os: windows 10
vscode: 1.33.1
node.js: 10.15.3

I have set node.js path as "A:\Program Files\nodejs\node.exe", where is the absolute install path.
When I give command as node -v in terminal, I can get the correct version information, so I guess the node.js is installed properly.

I am new to vscode settings, so could someone help me?
Thanks in advance!

@jdneo
Copy link
Member

jdneo commented May 15, 2019

@pgr2015 Since you have already put node executable into your path, you can just set leetcode.nodePath to its default value, which is node.

Please let me know if this can help solve your problem. thanks

@pgr2015
Copy link
Author

pgr2015 commented May 15, 2019

@jdneo thank you for your very quick reply, but I still have the problem.

vscode can now find node.js but continue giving error like leetcode.XXX not found.
I guess, I just don't set up correctly. Any idea?

Thank you very much!

@jdneo
Copy link
Member

jdneo commented May 15, 2019

It's hard for me to say what's happening according to the current information. Are you sure the VS Code session has node in its path? what if you close all the VS Code instances and start it again? Do not start if from the file explorer because the explorer session may not have node in its path.

@pgr2015
Copy link
Author

pgr2015 commented May 15, 2019

@jdneo thank you so much for your advice, I just reboot my computer and everything starts to work properly. So you are you are right, all I need to do is just refresh vscode completely.

Thank you!

@Indomite
Copy link

Error: ' node: command not found Error: The environment doesn't meet requirements. '
When I installed the leetcode plugin in VS code, he reported this error
The solution is to restart the computer, I think it is probably because the environment has not been loaded yet.

@bi-an
Copy link

bi-an commented Sep 23, 2024

I found that for me this was caused by not having all the VSCode SSH extensions enabled. When I enabled those extensions, all the issues like "nodejs not found" or "cannot log into leetcode" went away:

  1. Remote Explorer
  2. Remote - SSH
  3. Remote - SSH: Editing Configuration Files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants