Beatriz
Beatriz

Reputation: 21

VS Code terminal doesn't execute commands

every time I try to execute a command, the message below appears. I just installed Node, npm, React by Windows terminal, but VS Code doesn't recognize any command.enter image description here

**The term '' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

Upvotes: 1

Views: 8319

Answers (4)

Yuriy N.
Yuriy N.

Reputation: 6127

I have installed scoop and then appwrite using Windows Powershell. Both worked from Powershell window but not from VS Code terminal. I tried:

  • reopen terminal
  • reopen VS Code

Not helped.

  • restart Windows

Helped.

Upvotes: 0

byhuang1998
byhuang1998

Reputation: 417

I think you may have just downloaded node.js and opened vs code before downloading it. You just need to close vs code and reopen it, it should be fine.

Upvotes: 0

AuroraTea
AuroraTea

Reputation: 54

@phuzi Also will meet this problem when install System Installer version of VSCode and didn't run as Admin. So it's not completely unrelated to VSCode.

this problem: Only in VSCode Terminal(PowerShell) xxx is not recognized as the name of a cmdlet, function, script file, or operable program., but ok in others such as Windows PowerShell(actually contains terminal and shell) and Windows Terminal with PowerShell

Upvotes: 0

Preciado
Preciado

Reputation: 113

That is not a VSCode error. You only need to close the VSCode terminal (the trashbin button) and create a new one. Usually happens when you install Node with the VSCode terminal open.

Upvotes: 0

Related Questions