Centos用yum方式安裝nodejs和npm


要通過 yum 來安裝 nodejs 和 npm 需要先給 yum 添加 epel 源

 

##添加 epel 源

rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/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

原文:http://blog.csdn.net/xiao_jun_0820/article/details/50838185

yum和源碼安裝

https://blog.csdn.net/abcdefg2343/article/details/81355002


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM