curl --silent --location https://rpm.nodesource.com/setup_14.x | bash -yum update -yyum remove nodejs npm -yyum install nodejs npm -y
這樣就可以安裝到14的版本了,需要什么版本可以自己指定。