当前位置:首页 > Web开发 > 正文

CentOS7利用yum安装node.js

2024-03-31 Web开发

curl --silent --location https://rpm.nodesource.com/setup_8.x | bash -

V7.x:

curl --silent --location https://rpm.nodesource.com/setup_7.x | bash -

V6.x:

curl --silent --location https://rpm.nodesource.com/setup_6.x | bash -

V5.x:

curl --silent --location https://rpm.nodesource.com/setup_5.x | bash -

2.yum安装node.js

yum install -y nodejs

3.查看node.js版本

node -v

CentOS7利用yum安装node.js

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/web/8631.html