E
E
explicit12021-07-06 21:14:21
Node.js
explicit1, 2021-07-06 21:14:21

Why doesn't VScode see node.js on linux?

I decided to try to abandon windows and use linux as the main OS. Installed manjaro Gnome. I also learn js, so I installed VScode and node.js, after which a problem appeared. When I try to run the code through VScode, I get an error saying that it cannot find the path to node. I've been racking my brains for a couple of hours, googling and haven't found a solution yet. Node.js is definitely installed, the Linux terminal allows you to check the installed version, but the terminal in VScode does not seem to see it at all. What could be the problem and its solution?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xotkot, 2021-07-06
@explicit1

When I try to run the code through VScode, I get an error saying that it cannot find the path to node.

you are doing something wrong, maybe you put the node on some specific path and didn’t write the path in PATH, although if you do it according to the standard , everything should start out of the box.
$ sudo pacman -S node
$ whereis node
node: /usr/bin/node /usr/include/node /usr/share/man/man1/node.1.gz

related links:
archwiki Node.js
vscode integrated terminal
Node.js tutorial in Visual Studio Code

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question