Centos6.9 install npm environment

When installing the ELK environment, the prompt: "bash: npm: command not found", which requires the installation of nodejs and npm environment, the following describes the installation through yum:

Need to add epel and remi sources in centos

Add epel source (if other epel is installed in advance-release-7-11.noarch, you need to uninstall it first, otherwise it will conflict with the following)
64 Bit:[root@elk-node02 mnt]# rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
===========================================================================================32 Bit:[root@elk-node02 mnt]# rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
===========================================================================================

Import key:[root@elk-node02 mnt]# rpm --import/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6

Add remi source
[ root@elk-node02 mnt]# rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
[ root@elk-node02 mnt]# rpm --import/etc/pki/rpm-gpg/RPM-GPG-KEY-remi

After installation,carried out
[ root@elk-node02 mnt]# curl --silent --location https://rpm.nodesource.com/setup_5.x | bash -[root@elk-node02 mnt]# yum -y install nodejs

[ root@elk-node02 mnt]# npm -v
3.8.6

Recommended Posts

Centos6.9 install npm environment
CentOS6.8 install node.js npm
CentOS 7 install JAVA environment (JDK 1.8)
CentOS install nginx+tomcat+java+mysql operating environment
1.5 Install Centos7
Centos6 install Python2.7.13
Centos7.3 install nginx
CentOS install Redmine
Centos7 install Python 3.6.
CentOS7 install MySQL
Centos7 install protobuf
CentOS7 install GlusterFS
CentOS 7.4 install Zabbix 3.4
Centos6.5 install Tomcat
CentOS install Python 3.6
Vmware install CentOS6
centos7 install docker-ce 18.01.0
CentOS 7.2 install MariaDB
CentOS 7 install Hadoop 3.0.0
Centos7 install Python2.7
Centos 7.6 install seleniu
CentOS 7.3 install Zabbix3
Centos7 install LAMP+PHPmyadmin
CentOS install mysql
CentOS install openjdk 1.8
CENTOS6.5 install CDH5.12.1 (1)
CentOS install PHP
CentOS6 install mist.io
Centos7 install Docker
CentOS7 install mysql
centOs install rabbitMQ
CentOS 7 install MySQL 5.6
Centos7 install Nginx
CentOS6.5 install CDH5.13
Centos7 install docker18
Centos install Python3
centos7 install docker
CentOS install jdk
centos7 install nginx-rtmp
CentOS8 install MySQL8.0
Centos6.3 install KVM
CentOS install PostgreSQL 9.1
CentOS7 install mysql8
CentOS 7 install Java 1.8
CentOS8 install fastdfs6.06
CentOS 7 install Gitlab
Centos 7 install PostgreSQL
CentOS7 install MySQL8
CentOS 7 install Java 1.8
CentOS 6 install Docker
centos 6.5 install zabbix 4.4
Centos8 install Docker
CentOS6.8 install python2.7
CentOS install nodejs 8
CentOS6.5 install GNS3
centos 7.5 install mysql5.7.17
Centos7 install MySQL8.0-manual
CentOS7 install Kubernetes 1.16.3
VirtualBox install centos7
centos7 install lamp
Install centos7 and connect