yum 来安装 nodejs
生活随笔
收集整理的這篇文章主要介紹了
yum 来安装 nodejs
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
要通過 yum 來安裝 nodejs 和 npm 需要先給 yum 添加 epel 源,
添加方法在?centos 添加epel和remi源?中
##添加 epel 源
64位:
rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm32位:
rpm -ivh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm導入 key:
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6##添加 remi 源
rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-remi安裝完成后,執行 curl --silent --location https://rpm.nodesource.com/setup_5.x | bash -
yum -y install nodejs
總結
以上是生活随笔為你收集整理的yum 来安装 nodejs的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: ps、grep和kill联合使用杀掉进程
- 下一篇: iview render的时候可以写控件