CentOS安裝Node.js
來自: http://my.oschina.net/songzhu/blog/608129
原文地址:https://nodejs.org/en/download/package-manager/#enterprise-linux-and-fedora
下面是部分有用的信息:
Run as root on RHEL, CentOS or Fedora, for Node.js v4 LTS Argon:
curl --silent --location https://rpm.nodesource.com/setup_4.x | bash -
Alternatively for Node.js v5:
curl --silent --location https://rpm.nodesource.com/setup_5.x | bash -
Alternatively for Node.js 0.10:
curl --silent --location https://rpm.nodesource.com/setup | bash -
Then install, as root:
yum -y install nodejs
Optional: install build tools
To compile and install native addons from npm you may also need to install build tools:
yum install gcc-c++ make# or: yum groupinstall 'Development Tools'
本文由用戶 JameKilleen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!