有什么方法可以使用yum在CentOS 7上安装最新的nodejs(版本4.2.1或5.0)? 当然,我可以安装它,否则,例如从源,但我想保持它可维护…目前在EPEL版本是0.10.36,请参阅https://dl.fedoraproject.org/pub/epel/7 /x86_64/repoview/nodejs.html
Nodesource为nodejs 4x和5x提供存储库。
例如,要安装4x分支的repo,以root身份运行:
# curl -sL https://rpm.nodesource.com/setup_4.x | bash -
然后你可以通过yum来安装nodejs:
# yum install nodejs
来源: https : //github.com/nodesource/distributions