Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

HUGE_DICK_10_INCHES's avatar

How to install latest node and npm on centos 7

From every examples they use bash command and my brand new centos vps doesnt have bash command...

0 likes
1 reply
richbreton's avatar

sudo which bash

if nothing sudo yum install bash if it gives you a path like (/bin/bash) substitute bash for /bin/bash like below

sudo yum groupinstall 'Development Tools' sudo curl -sL https://rpm.nodesource.com/setup_12.x | /bin/bash -

sudo yum install npm

Please or to participate in this conversation.