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
  • Test of youtube embeds

    Solved Configure
    14
    11 Votes
    14 Posts
    241 Views

    @phenomlab Perfect!!! Many thanks.

  • Pulling YouTube videos using RSS

    Configure
    5
    6 Votes
    5 Posts
    126 Views

    The perfect solution and walkthrough Mark, appreciated as always!

  • How to deploy WordPress.org Developer theme

    Solved Configure
    4
    1 Votes
    4 Posts
    407 Views

    @Hari the real issue here is that I donā€™t think it can be used as a theme for WordPress because of the dependencies it clearly has, including its own Web server.

    My view here is that this is designed to be a complete development environment outside of the WordPress core.

  • mongodb backup problem

    Moved Configure
    3
    1 Votes
    3 Posts
    242 Views

    You might want to also review this post

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

  • mongodb replica set

    Configure
    11
    2 Votes
    11 Posts
    521 Views

    @veronikya said in mongodb replica set:

    The hostā€™s local dns resolution is not configured. The problem of the hostā€™s hosts being unable to be resolved in docker has been solved. Surprisingly
    Solution:
    Edit the /etc/resovel.conf file
    Add 127.0.0.53

    One immediate issue I can think of here is that editing resolv.conf directly is no longer supported and not recommended (because the changes do not survive a reboot) - unless you install the resolvconf package?

  • Category For User

    Solved Configure
    11
    12 Votes
    11 Posts
    525 Views

    3.5.1 has now been released. Iā€™ve just deployed it, so safe to do so!

  • Come back PhP, all is forgiven!

    Hosting
    3
    4 Votes
    3 Posts
    248 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