我可以在 Centos 7 上安装 node.js 18 吗?我还需要安装 python 3 吗?

问题描述 投票:0回答:4

我不确定 node.js 18 是否支持 centos 7,是否需要为 node.js 18 安装 python 3?

python node.js linux centos
4个回答
11
投票

从 v18 开始,由于 glibc 版本不兼容,Node.js 不再支持 centos 7 和其他一些 Linux 发行版。见https://github.com/nodejs/node/issues/43246.


0
投票

是的,你可以, 但你必须解决相关问题(升级 make、gcc、glibc、python 版本等)


-2
投票

我确定你可以在 Centos7 上安装 NodeJS 18。

关于 Python 需求。 是的,你需要安装 python,NodeJS 使用一些 python 代码。从源代码构建节点需要 Python


-4
投票

步骤 1 -

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

第 2 步 -

sudo yum -y install nodejs

我不认为你需要 Python 3.

参考 - https://computingforgeeks.com/install-node-js-on-centos-rhel-rocky-linux/

© www.soinside.com 2019 - 2024. All rights reserved.