Skip to main content

Install Node.js and NPM on Rocky Linux 9

Answered

Comments

11 comments

  • cPRex Jurassic Moderator

    Hey there!  You wouldn't need to perform any work on the server outside of EasyApache, so I'd recommend removing the packages that were manually installed and then following the guide related to your operating system here:

    https://support.cpanel.net/hc/en-us/articles/360051876714-How-to-install-NodeJS-using-the-command-line

     

    0
  • kuwaite33

    Thank you cPRex

    for the wonderful support. 

    0
  • kuwaite33

    Hi, I get this error.

     dnf install ea-apache24-mod_env ea-ruby27-mod_passenger ea-nodejs2

    Last metadata expiration check: 2:42:51 ago on Thu 09 Jan 2025 07:45:27 AM CET.
    No match for argument: ea-ruby27-mod_passenger
    Error: Unable to find a match: ea-ruby27-mod_passenger

     

    0
  • cPRex Jurassic Moderator

    Can you let me know which operating system you are using so I can test this?

    0
  • kuwaite33

    اHello,

    operating system Rocky Linux v9.4.0 STANDARD standard 

    Thank you

    0
  • cPRex Jurassic Moderator

    Thanks for the additional details.  Can you check out the information in this thread to see if that solves your issue?

    https://support.cpanel.net/hc/en-us/community/posts/19165073154967-ea-ruby27-packages-missing-on-AlmaLinux-9

    0
  • kuwaite33

    Thanks cPRex

    I installed the following package:

    ea-apache24-mod-passenger

    Result 

     /usr/local/bin/ea-passenger-runtime-applications-settings
    Default ruby, /usr/bin/ruby, is ok
    Default python, /usr/bin/python3.9, is ok
    Default nodejs, /usr/bin/node, is ok

    Verifying passenger setting for ruby
            ruby setting, /usr/bin/ruby, is ok
    Verifying passenger setting for python
            python setting, /usr/bin/python3.9, is ok
    Verifying passenger setting for nodejs
            nodejs setting, /usr/bin/node, is ok

    No passenger application settings need fix

    Is everything ok or should I do the next activation?

    Additional Packages 

    nodejs22

    20.18.1-1.2.1.cpanel

    0
  • kuwaite33

    Hello,

    Hi Mansour,

    Please see the attachment: https://prnt.sc/dDUHnjamZe8R.

    Where is your Node.js?

    Is there a way to display it in the members control panel?

    0
  • cPRex Jurassic Moderator

    That all looks normal to me - Node.JS would be handled inside the Application Manager icon in your screenshot.  More details on using that particular area of the interface can be found here:

    https://docs.cpanel.net/cpanel/software/application-manager/

    but yes, you can install the ea-nodejs22 package at this time.

    0
  • kuwaite33

    Thank you cPRex

    0
  • cPRex Jurassic Moderator

    You're very welcome!

    0

Please sign in to leave a comment.