Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Node.js Selector on CloudLinux

Discussion in 'CloudLinux' started by Tarak Nath, May 30, 2019.

Tags:
  1. Tarak Nath

    Tarak Nath Well-Known Member

    Joined:
    Mar 12, 2018
    Messages:
    73
    Likes Received:
    11
    Trophy Points:
    8
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Thank you for the update.

    We have also configured NodeJS in our dedicated server using Node.js selector with the help of resource Node.js Selector | Documentation as we are using CloudLinux7.6. We have also configured a sample NodeJS chat application from github.com/socketio/chat-example']socketio/chat-example which is working fine.

    But we are unable to execute the command 'node' or 'npm' via root terminal or cPanel terminal.

    Bellow is the output of root terminal:
    Code:
    [email protected] [~]# which node
    [email protected] [~]# which npm
    [email protected] [~]# node --version
    -bash: node: command not found
    [email protected] [~]# npm --version
    -bash: npm: command not found
    [email protected] [~]#
    
    And below is the output of cPanel user terminal:
    Code:
    [email protected] [~]# node --version
    bash: node: command not found
    [email protected] [~]# npm --version
    bash: npm: command not found
    
    Any suggestion would be appreciated.

    Thanks,
    Tarak Nath
     
    #1 Tarak Nath, May 30, 2019
    Last edited by a moderator: May 30, 2019
  2. Tarak Nath

    Tarak Nath Well-Known Member

    Joined:
    Mar 12, 2018
    Messages:
    73
    Likes Received:
    11
    Trophy Points:
    8
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello,

    We have noticed 'node' and 'npm' command only working when we run the below command:

    Code:
    source /home/username/nodevenv/public_html/nodejs/10/bin/activate
    
    But its not working once terminal closed.

    Regards,
    Tarak Nath
     
  3. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,528
    Likes Received:
    2,180
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    For anyone else reading this thread, keep in mind the CloudLinux Node.JS Selector feature is independent of of cPanel's Node.JS implementation. CloudLinux provides their own NodeJS RPM as part of their own EasyApache 4 YUM repo. cPanel & WHM documents such as Guide+to+Node.js+Installations are not tested on CloudLinux.

    The document to reference when using Node.JS with CloudLinux is found on the link below:

    Node.js Selector | Documentation

    @Tarak Nath, the CloudLinux documentation states the following:

    If you have confirmed you are logged in via SSH as the account username and not root, then I recommend contacting CloudLinux directly to report the issue:

    CloudLinux

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  4. Tarak Nath

    Tarak Nath Well-Known Member

    Joined:
    Mar 12, 2018
    Messages:
    73
    Likes Received:
    11
    Trophy Points:
    8
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Thank you for the update.

    Is there any plan in cPanel/WHM to test it for CloudLinux environment?

    Regards,
    Tarak Nath
     
  5. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,528
    Likes Received:
    2,180
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello @Tarak Nath,

    CloudLinux has yet to publish the most recent ea-ruby24-mod_passenger RPM to their EasyApache 4 YUM repo. I recommend using Node.JS Selector if you're using CloudLinux for the time being.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    #5 cPanelMichael, May 31, 2019
    Last edited: Jul 2, 2019
  6. cPanelMichael

    cPanelMichael Technical Support Community Manager Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    47,528
    Likes Received:
    2,180
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    To update, CloudLinux is planning to publish an updated ea-ruby24-mod_passenger RPM to their EasyApache 4 YUM repo next week. I'll update this thread once it's published.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice