How To Set Node.js Extension PATH in VS Code
1 Attachment(s)
Hi Folks,
I installed on a Slackware based (SALIX) VS Code via FlatPack and I tried to set up the JAVA environment. First time I tested a JavaScript sample file received a message (see attached). Then I installed from package manager nodejs 17.9.0 and I Code:
export PATH=$PATH:/usr/bin/node I followed: https://code.visualstudio.com/docs/n...ith-javascript I tried to add to launch.json "runtimeExecutable": "node" Code:
{ but still got the same message. Code:
brad@toshiba:~$ java -version I can run the js file from CLI BUT not in VS Code environment. Not to mention it works just fine on Debian based OSs. Thanks! |
If the setup works fine in Debian, then one option is to set up a Debian Docker to develop in.
|
How is Java related to this problem?
Anyways, run this command, and insert here the result: Code:
find / -name node -type f 2>/dev/null |
Quote:
|
Quote:
who told you to do it? To do what? |
No, I’ll just be more direct.
What does “which node” print out? |
Quote:
Code:
npm version |
Honestly, I didn’t see it because I didn’t read past the Java noise. It looks good.
VSCode has its own terminal. What do you see when you do that (“npm version”) from VSCode’s terminal? The one you can start from its Terminal menu. |
Quote:
later ... just to confirm VSCode can't see outside its environment, which was predictible |
Quote:
Code:
/home/brad/Downloads/NODE.js/node-v18.12.1/out/Release/node |
/proc/ and /tmp/ shouldn't be important, examine the first three:
Code:
ls -ld /home/brad/Downloads/NODE.js/node-v18.12.1/out/Release/node \ |
Quote:
first 2 in ~ are packages the third: Code:
root[brad]# ls -ld /usr/bin/node |
Could you please explain this error message:
Can't find Node.js binary "node": path does not exist. What path doesn't exist? |
Quote:
I assumed the PATH to node. The VS Code container can't communicate with the "node" on the machine. I also tried almost all VSCode "node" extensions packages even they say: Quote:
|
It might have a point: please quote the output of command /usr/bin/node --version
|
All times are GMT -5. The time now is 08:16 PM. |