H
H
Hotamjon2020-07-24 15:45:59
Visual Studio Code
Hotamjon, 2020-07-24 15:45:59

Why can't I work with the terminal of all code?

PS C:\projects\docs> node
node : The name 'node' is not recognized as the name of a cmdlet, function, script file, or executable. Check the spelling of the name and the presence and correctness of the
path, then try again.
string:1 character:1
+ node
+ ~~~~
+ CategoryInfo : ObjectNotFound: (node:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Megum1n, 2020-07-24
@Megum1n

The terminal in VS Code uses PowerShell by default. PowerShell reports that the "node" command does not exist.
Most likely you have not added the path to the nodejs executable file to the system PATH. In this case, you need to add it:
https://helpdeskgeek.com/windows-10/add-windows-pa...
Another option is that you don't have nodejs installed. Then you need to install it:
https://nodejs.org/

P
Programiker, 2020-07-27
@Programiker

Select from the drop-down list at the top of the console instead of cmd supershell.

B
boikom, 2022-01-26
@boikom

Reload if you just installed the node and the editor was open at that time

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question