知乎专栏 | 多维度架构 |
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