-
Notifications
You must be signed in to change notification settings - Fork 666
Error: LeetCode extension needs Node.js installed in environment path #201
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
@skyhiter How did you start your VS Code? |
@skyhiter Wired. It should not be a problem with the VS Code. Have you upgraded the node recently? Have you tried to restart the OS? |
Guess this is because you are put the node executable into your zshell's path, but not the default bash's path. While the extension won't able to get this information when it creates a child process to execute leetcode tasks. |
Maybe. I aways use zsh, it had worked before. I'll find out the cause of the error by myself. Thank you for your prompt reply. |
please see issueCustomized environment variables not available for extensions when VS Code is not launched via terminal. When I start vscode from zsh, it works! So, it may be vscode's bug (or feature?). |
In my personal opinion, I think it's not a bug. This is as expected for using another shell. Closing it for now since the issue has been resolved. |
Any other way to resolve this except for launching vsc from terminal? |
I have the same problem,because input the error node path.so try to get the correct node.exe path |
Have the same issue!! |
这个问题恶心了我一个下午,总算是在睡前解决了 具体解决方案: 分析原因: 如果有帮助到你,请祝我前程似锦~ |
I have the same issue. In my opinion this is not expected even using another shells. |
🐛 Bug Report
When sign in, it pops up "LeetCode extension needs Node.js installed in environment path".

But node command has been in my environment path.
To Reproduce
select "LeetCode Sign In" command.
Expected behavior
pop up login window.
Your Environment
RalfZhang.filetemplate
SirTori.indenticator
aaron-bond.better-comments
abusaidm.html-snippets
alefragnani.project-manager
anseki.vscode-color
austin.code-gnu-global
christian-kohler.path-intellisense
CoenraadS.bracket-pair-colorizer
dbaeumer.vscode-eslint
donjayamanne.githistory
eamodio.gitlens
ecmel.vscode-html-css
eg2.tslint
emilast.LogFileHighlighter
felipecaputo.git-project-manager
formulahendry.auto-close-tag
formulahendry.code-runner
goessner.mdmath
GrapeCity.gc-excelviewer
HookyQR.beautify
humao.rest-client
humy2833.ftp-simple
James-Yu.latex-workshop
johnstoncode.svn-scm
kondratiev.sshextension
lextudio.restructuredtext
liximomo.sftp
lonefy.vscode-JS-CSS-HTML-formatter
MS-CEINTL.vscode-language-pack-zh-hans
ms-mssql.mssql
ms-python.anaconda-extension-pack
ms-python.python
ms-vscode.cpptools
ms-vscode.Go
neuron.neuron-IPE
octref.vetur
redhat.java
redhat.vscode-yaml
ritwickdey.LiveServer
robertohuertasm.vscode-icons
rust-lang.rust
ryu1kn.partial-diff
SBSnippets.pytorch-snippets
Shan.code-settings-sync
shengchen.vscode-leetcode
streetsidesoftware.code-spell-checker
VisualStudioExptTeam.vscodeintellicode
vscjava.vscode-java-debug
vscjava.vscode-java-dependency
vscjava.vscode-java-pack
vscjava.vscode-java-test
vscjava.vscode-maven
waderyan.gitblame
yzane.markdown-pdf
yzhang.markdown-all-in-one
zhuangtongfa.Material-theme
Zignd.html-css-class-completion
The text was updated successfully, but these errors were encountered: