Skip to content

node vs nodejs confusion?

Solved Configure
  • This was so confusing that I think its worth a forum post on it. Iā€™m sure I wont be the last person to be thrown by this.
    So it started two days ago when I wanted to update Nodejs (or should I say node) to version 18.x on a server, and it seemed to download it but ā€¦
    nodejs --version always gave a very old number
    Thanks to @phenomlab I now realise the command to use should be
    node --version
    ā€¦ but how confusing that there are two similarly named packages, and I seemed to have both.
    Whats more the terms node and nodejs are used interchangeably in some places.
    For example although NodeBB uses node
    On the nodebb instructions, the install command writes nodejs!

    sudo apt-get install -y nodejs
    

    So while I sort this out in my head, if the NodeBB uses ā€˜nodeā€™, why is the install command stating nodejs ?

  • @eeeee have a look at the below

    https://docs.nodebb.org/installing/os/ubuntu/

    curl -sL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
    sudo apt-get install -y nodejs
    
    

    Youā€™ll notice that we are in fact ā€œinstallingā€ NodeJS but never actually have a need to reference it. Hereā€™s the nodejs --version command on my dev system

    6eb1482e-0c9b-454d-aa84-199bcc845702-image.png

    More detail here

    https://askubuntu.com/questions/1030622/why-do-i-see-different-versions-of-node-and-nodejs

  • phenomlabundefined phenomlab has marked this topic as solved on

Did this solution help you?
Did you find the suggested solution useful? Why not buy me a coffee? It's a nice gesture, and a great way to show your appreciation šŸ’—

Related Topics
  • Pulling YouTube videos using RSS

    Configure
    5
    6 Votes
    5 Posts
    134 Views

    The perfect solution and walkthrough Mark, appreciated as always!

  • mongodb backup problem

    Moved Configure
    3
    1 Votes
    3 Posts
    251 Views

    You might want to also review this post

    https://sudonix.org/topic/389/mongodb-backup-script

  • Getting Eror When Started NodeBB

    Solved Configure
    7
    2 Votes
    7 Posts
    506 Views

    @phenomlab yes i did.

    i deleted one of plugin then it started to work normally.

  • Come back PhP, all is forgiven!

    Hosting
    3
    4 Votes
    3 Posts
    252 Views

    @phenomlab said in Come back PhP, all is forgiven!:

    I used IONOS for a while, and realised that Hetzner provide a much better deal for those experienced with Linux. I know @cagatay, @DownPW and myself all use Hetzner, and I think @Madchatthew (whom I havenā€™t seen for a while ) was also considering taking their services. Thereā€™s an affiliate link below if youā€™d like to go down that route

    Yep hetzner is very very cool and I havenā€™t seen before a panel magentment as complete as him : backup, snapshot, add cpu core, ram is easy.

    @phenomlab said in Come back PhP, all is forgiven!:

    Obtaining a VPS comes with the double-edged sword of being completely on your own with no support, although by using Virtualmin, youā€™ll find life so much simpler (something I know @DownPW can attest to, as I managed to convert him )

    Yep Virtualmin is very cool šŸ˜‰
    And it makes life much easier for server management, domain, nginx and so on even if it is always better to know how to do all this in CLI. I would say that the 2 are really complementary

  • Setup OGProxy for use in NodeBB

    Moved Let's Build It
    110
    21 Votes
    110 Posts
    11k Views

    @crazycells said in Setup OGProxy for use in NodeBB:

    are they cached for each user separately?

    No. Itā€™s a shared cache

    @crazycells said in Setup OGProxy for use in NodeBB:

    additionally, this is also handling youtube videos etc, right?

    No. This is handled by nodebb-plugin-ns-embed

  • Peoples thoughts on Nextjs?

    Discussion
    2
    2 Votes
    2 Posts
    173 Views

    @Panda I have the same opinion here. NextJS is a framework for react, and like angular, I was never one to simply dive off into the deep without having any real need to do so. Iā€™m conversant with nodeJS, vanilla js, and several other languages (including PHP which I have years of experience in and developed / still maintain an application at work that was custom written by me to fulfill an audit requirement), and in all honesty, I donā€™t really want to spend my life learning new frameworks unless I have a need to do so.

    Iā€™ve been on the nodeJS train for some time now, and given my adoption of NodeBB, this makes perfect sense.

    Bleeding edge is fun if you want to experiment and learn, but with so many frameworks popping up all over the place, how many do we actually need?

    I guess most of this really depends on unique use cases, but Iā€™ve yet to come across an issue that meant I had to rewrite an application in a different language to resolve an issue. Itā€™s almost like using a bulldozer to find a china cup.

  • Updating Node and NPM

    General
    5
    1 Votes
    5 Posts
    391 Views

    @Sampo2910 said in Updating Node and NPM:

    Is there a way I can see what the app version of Node is? Then i could install ā€˜up to thatā€™ and keep an eye out for any changes?

    Have a look in the source code for the app you are using, or better still, look at the GitHub page which should give you an idea of the version number which is the latest.

    In the source code you have running, there is typically a README file which should state the version you are running.

  • Deploy React + NodeJs App

    Solved Configure
    25
    4 Votes
    25 Posts
    1k Views

    @justoverclock Any update ?

    Thanks

    EDIT - marking as solved based on the below thread
    https://sudonix.com/topic/339/digitalocean-step-by-step-guide-to-nginx-configuration