Install Node.js and NPM on Rocky Linux 9
AnsweredHello
I have installed nojde.js as follows
curl -fsSL https://rpm.nodesource.com/setup_22.x -o nodesource_setup.sh
sudo -E bash nodesource_setup.sh
sudo dnf install nodejs -y
node -v
Output: v22.6.0
npm -v
Output: 10.8.2
and cpanel ?
EasyApache4
mod_passenger
mod_env
nodejs22
When I enter the site control panel, I do not find any installation or presence. nodejs
؟
What is the work to be added to the sites on the server?
-
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:
0 -
Thank you cPRex
for the wonderful support.
0 -
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_passenger0 -
Can you let me know which operating system you are using so I can test this?
0 -
اHello,
operating system Rocky Linux v9.4.0 STANDARD standard
Thank you
0 -
Thanks for the additional details. Can you check out the information in this thread to see if that solves your issue?
0 -
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 okVerifying 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 okNo 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 -
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 -
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 -
Thank you cPRex
0 -
You're very welcome!
0
Please sign in to leave a comment.
Comments
11 comments