0

I have a very strange problem with node. When I open a folder in my vscode, node does not recognize me but without opening a folder it recognizes it perfectly, I do not understand what the error may be. On the other hand I already have node added to the path.

enter image description here

Without opening a folder just opening the vscode

enter image description here

In cmd

enter image description here

Path enter image description here

I don't understand why node doesn't grab me when I open a folder in vscode.

Oxonomy
  • 21
  • 5
  • You probably want to raise this over on https://github.com/microsoft/vscode/issues because that sounds like a bug description, not a stackoverflow question. – Mike 'Pomax' Kamermans Sep 04 '21 at 17:52
  • Ok,If you know the reason for this error, tell me. Thank you. https://github.com/microsoft/vscode/issues/132349 – Oxonomy Sep 04 '21 at 17:59
  • Could this be related to the powershell that you're using? Try using a different terminal. – Bergi Sep 04 '21 at 18:29
  • So... When i open the terminal in vscode , this program open powershell for default. – Oxonomy Sep 04 '21 at 18:46
  • I found a solution but I don't think this is what it should be. Install wsl and install node. And from wsl I ran node in vscode and that worked but I would not believe that this should be a solution. – Oxonomy Sep 04 '21 at 18:47
  • 1
    Instead, just use cmd instead of powershell. https://stackoverflow.com/a/43751743/740553 (and as a bonus, now you have a shell that supports `&` again, like every other normal shell). No need for WSL here. – Mike 'Pomax' Kamermans Sep 04 '21 at 19:09
  • That option I did not know, too interesting. Thank you – Oxonomy Sep 04 '21 at 22:33

0 Answers0