Home | 简体中文 | 繁体中文 | 杂文 | Github | 知乎专栏 | 51CTO学院 | CSDN程序员研修院 | OSChina 博客 | 腾讯云社区 | 阿里云栖社区 | Facebook | Linkedin | Youtube | 打赏(Donations) | About
知乎专栏多维度架构

23.3. CentOS

CentOS 8 Stream

		
dnf install -y nodejs
		
		

CentOS 7

[root@netkiller www]# yum install -y nodejs
[root@netkiller www]# node --version
v6.9.1
		

安装 cnpm

		
[root@gitlab ~]# npm config set registry https://registry.npm.taobao.org
[root@gitlab ~]# npm config get registry
https://registry.npm.taobao.org/
[root@gitlab ~]# npm install -g cnpm