LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-06-2023, 05:49 AM   #16
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS-BSD-like, almost Linux-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 307

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by NevemTeve View Post
It might have a point: please quote the output of command /usr/bin/node --version
Right now I reinstalled 17.9.0 from 19.3.0 (and 18.13.0). So the output is 17.9.0

Last edited by lattimro; 01-06-2023 at 02:27 PM.
 
Old 01-06-2023, 09:34 PM   #17
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 10,773

Rep: Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097
Quote:
Originally Posted by dugan View Post
No, I’ll just be more direct.

What does “which node” print out?
Quote:
Originally Posted by lattimro View Post
I need to let VSCode to know where node is and so far I can't find where to set the PATH.
If you had chosen to answer the question, then you would know what to set the PATH to. You might want to think about that.

So, again: what does "which node" print out? Entering "which node" would actually tell you where the node binary is. The output of "npm version" does not.

Quote:
Originally Posted by NevemTeve View Post
It might have a point: please quote the output of command /usr/bin/node --version
Quote:
Originally Posted by lattimro View Post
Right now I reinstalled 17.9.0 from 19.3.0 (and 18.13.0). So the output is 17.9.0
Did you actually do it, or did you just assume the output would be 17.9.0 and not, say, "no such file or directory"?

Last edited by dugan; 01-06-2023 at 10:22 PM.
 
Old 01-06-2023, 10:36 PM   #18
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS-BSD-like, almost Linux-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 307

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dugan View Post
If you had chosen to answer the question, then you would know what to set the PATH to. You might want to think about that.

So, again: what does "which node" print out? Entering "which node" would actually tell you where the node binary is. The output of "npm version" does not.





Did you actually do it, or did you just assume the output would be 17.9.0 and not, say, "no such file or directory"?
Really? I am wondering what do you think about #1 where I exported the PATH to /usr/bin/node. Why you think I did that? Do I need to know where the node is when I know where is it? Maybe I exported because I KNOW where node is. I tested a *.js file and works fine on machine. The issue is that is not been seen by VSCode.
The node is not found on VSCode and this is the issue this answer was raised.

Last edited by lattimro; 01-06-2023 at 10:45 PM.
 
Old 01-06-2023, 11:03 PM   #19
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,428
Blog Entries: 1

Rep: Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679
I thought #16 means you couldn't run command `/usr/bin/node --version` because installing an older version took all your time.
Or it means installing an older version solved your problem.

Anyways, PATH should contain only directories, not individual files.
https://en.wikipedia.org/wiki/PATH_(variable)

Last edited by NevemTeve; 01-06-2023 at 11:06 PM.
 
Old 01-06-2023, 11:09 PM   #20
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 10,773

Rep: Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097
Quote:
Originally Posted by lattimro View Post
Really? I am wondering what do you think about #1 where I exported the PATH to /usr/bin/node.
Yes, really.

I already told you what I think about that. I told you in my first post in the thread.

Unless your path to your node executable is /usr/bin/node/node, then that is wrong.

Now, when you go into VSCode's terminal (from its "Terminal" menu) and enter "echo $PATH", what do you get? Or are you going to refuse to do that too?

Last edited by dugan; 01-06-2023 at 11:12 PM.
 
Old 01-06-2023, 11:14 PM   #21
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 10,773

Rep: Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097
Quote:
Originally Posted by lattimro View Post
FlatPack
Hold on a minute.

Think you might be having issues with FlatPak's sandboxing?

Last edited by dugan; 01-06-2023 at 11:19 PM.
 
Old 01-07-2023, 12:44 AM   #22
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS-BSD-like, almost Linux-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 307

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dugan View Post
Hold on a minute.

Think you might be having issues with FlatPak's sandboxing?
That could be a good start finally, but how to investigate that?
 
Old 01-07-2023, 12:48 AM   #23
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS-BSD-like, almost Linux-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 307

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by NevemTeve View Post
It might have a point: please quote the output of command /usr/bin/node --version
Note this is for VSCode terminal:

Code:
sh-5.1$ /usr/bin/node -v
sh: /usr/bin/node: No such file or directory
sh-5.1$ whereis node
node:
sh-5.1$ which node
which: no node in (/app/bin:/app/bin:/app/bin:/usr/bin:/home/brad/.var/app/com.visualstudio.code/data/node_modules/bin)
sh-5.1$
so I am saying again VSCode is not seeing node installed on the machine

Last edited by lattimro; 01-07-2023 at 09:36 AM.
 
Old 01-07-2023, 12:57 AM   #24
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS-BSD-like, almost Linux-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 307

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dugan View Post
Yes, really.

I already told you what I think about that. I told you in my first post in the thread.

Unless your path to your node executable is /usr/bin/node/node, then that is wrong.

Now, when you go into VSCode's terminal (from its "Terminal" menu) and enter "echo $PATH", what do you get? Or are you going to refuse to do that too?
I am not refusing anything, I appreciate your help just sometimes I can't wake-up the remote machine, poor signal.

Code:
sh-5.1$ mc
sh: mc: command not found
sh-5.1$ echo $PATH
/app/bin:/app/bin:/app/bin:/usr/bin:/home/brad/.var/app/com.visualstudio.code/data/node_modules/bin
sh-5.1$
 
Old 01-07-2023, 01:44 AM   #25
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 10,773

Rep: Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097
Quote:
Originally Posted by lattimro View Post
That could be a good start finally, but how to investigate that?
My VSCode installation isn't FlatPak, so I won't be testing these myself. Here are two links I found:

https://stackoverflow.com/questions/...ystem-binaries

https://www.reddit.com/r/flatpak/com...srbin_etc_and/
 
Old 01-07-2023, 02:01 AM   #26
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,428
Blog Entries: 1

Rep: Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679
You should forget this flatpack-thingie, install the software properly from rpm package (or similar).
 
Old 01-07-2023, 02:06 AM   #27
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS-BSD-like, almost Linux-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 307

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dugan View Post
My VSCode installation isn't FlatPak, so I won't be testing these myself. Here are two links I found:

https://stackoverflow.com/questions/...ystem-binaries

https://www.reddit.com/r/flatpak/com...srbin_etc_and/
OK I see, I will remove flatpack's installation and I will give a try and reinstall from sources. But as far as I recall I had the same issue, I may be wrong ...
 
Old 01-07-2023, 02:09 AM   #28
NevemTeve
Senior Member
 
Registered: Oct 2011
Location: Budapest
Distribution: Debian/GNU/Linux, AIX
Posts: 4,428
Blog Entries: 1

Rep: Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679Reputation: 1679
Installing from source isn't recommended for beginners either.
 
Old 01-07-2023, 02:15 AM   #29
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 10,773

Rep: Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097Reputation: 5097
Yeah, I think I would give up on VSCode in a FlatPak after reading these two:

https://www.reddit.com/r/flatpak/com...e_flatpak_see/

https://community.clearlinux.org/t/d...er-issues/1416

Last edited by dugan; 01-07-2023 at 02:16 AM.
 
Old 01-07-2023, 11:52 AM   #30
lattimro
Member
 
Registered: Jul 2021
Distribution: SOLARIS-BSD-like, almost Linux-like, some Arch-like, some GENTO-like, some RH-like, some slacky-like
Posts: 307

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by NevemTeve View Post
Installing from source isn't recommended for beginners either.
right, unfortunately I did not have luck on this post of knowledgeable members.


VSCode works fine from SlackBuild

Last edited by lattimro; 01-07-2023 at 04:55 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rhel 2 node cluster: resources do not move to second node when node halted tapuhi Linux - Software 1 03-01-2015 11:41 AM
node recovery when the node becomes fault by using another node to replace it jerinc Linux - Wireless Networking 0 02-21-2014 06:44 PM
How to transfer the services from node 1 to node 2 ,if node 1 is directly turned off sankarg304 Linux - Server 1 12-12-2012 11:06 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration