npm Community Forum (Archive)

The npm community forum has been discontinued.

To discuss usage of npm, visit the GitHub Support Community.

Installing NPM/NodeJS on CentOS is a nightmare

Have been trying for a few hours to install node on CentOS 7.7 to no avail. Cmon guys yum install node/nodejs/npm should just work.

What’s a boy to do?

Workaround for now:

curl -Lk | bash
n 12.13.0

To make node and npm globally available (to any user):

sudo ln -s ~/n/n/versions/node/12.13.0/bin/node /usr/bin/node
sudo ln -s ~/n/bin/npm /usr/bin/npm


node -v