nodejs - 01.安装Nodejs - 自动安装 - 不推荐

JiMideMacBook-Pro:~ jimi$ ssh -l root 192.168.10.200

root@192.168.10.200's password:

Last login: Mon Jul 15 15:04:14 2019 from 192.168.10.112

 

 

 

yum install nodejs

[root@localhost ~]# yum install nodejs

已加载插件:fastestmirror, langpacks

Repository packages-microsoft-com-prod is listed more than once in the configuration

Determining fastest mirrors

epel/x86_64/metalink | 8.1 kB 00:00

* base: mirrors.aliyun.com

* epel: mirrors.tuna.tsinghua.edu.cn

* extras: mirrors.aliyun.com

* updates: mirrors.cn99.com

base | 3.6 kB 00:00

epel | 5.3 kB 00:00

extras | 3.4 kB 00:00

gitlab_gitlab-ee/x86_64/signature | 836 B 00:00

gitlab_gitlab-ee/x86_64/signature | 1.0 kB 00:00 !!!

gitlab_gitlab-ee-source/signature | 836 B 00:00

gitlab_gitlab-ee-source/signature | 951 B 00:00 !!!

google-chrome | 1.3 kB 00:00

packages-microsoft-com-mssql-server-2017 | 2.9 kB 00:00

packages-microsoft-com-prod | 2.9 kB 00:00

updates | 3.4 kB 00:00

(1/6): epel/x86_64/updateinfo | 993 kB 00:00

(2/6): google-chrome/primary | 1.7 kB 00:00

(3/6): packages-microsoft-com-mssql-server-2017/primary_db | 20 kB 00:00

(4/6): packages-microsoft-com-prod/primary_db | 174 kB 00:00

(5/6): epel/x86_64/primary_db | 6.8 MB 00:02

(6/6): updates/7/x86_64/primary_db | 6.5 MB 00:02

gitlab_gitlab-ee/x86_64/primary | 1.9 MB 00:05

gitlab_gitlab-ee 473/473

google-chrome 3/3

正在解决依赖关系

--> 正在检查事务

---> 软件包 nodejs.x86_64.1.6.17.1-1.el7 将被 安装

--> 正在处理依赖关系 npm = 1:3.10.10-1.6.17.1.1.el7,它被软件包 1:nodejs-6.17.1-1.el7.x86_64 需要

--> 正在处理依赖关系 libuv >= 1:1.9.1,它被软件包 1:nodejs-6.17.1-1.el7.x86_64 需要

--> 正在处理依赖关系 libuv.so.1()(64bit),它被软件包 1:nodejs-6.17.1-1.el7.x86_64 需要

--> 正在检查事务

---> 软件包 libuv.x86_64.1.1.29.1-1.el7 将被 安装

---> 软件包 npm.x86_64.1.3.10.10-1.6.17.1.1.el7 将被 安装

--> 解决依赖关系完成

 

依赖关系解决

 

================================================================================

Package 架构 版本 源 大小

================================================================================

正在安装:

nodejs x86_64 1:6.17.1-1.el7 epel 4.7 M

为依赖而安装:

libuv x86_64 1:1.29.1-1.el7 epel 137 k

npm x86_64 1:3.10.10-1.6.17.1.1.el7 epel 2.5 M

 

事务概要

================================================================================

安装 1 软件包 (+2 依赖软件包)

 

总下载量:7.3 M

安装大小:26 M

Is this ok [y/d/N]: y

Downloading packages:

(1/3): libuv-1.29.1-1.el7.x86_64.rpm | 137 kB 00:00

(2/3): nodejs-6.17.1-1.el7.x86_64.rpm | 4.7 MB 00:00

(3/3): npm-3.10.10-1.6.17.1.1.el7.x86_64.rpm | 2.5 MB 00:00

--------------------------------------------------------------------------------

总计 3.9 MB/s | 7.3 MB 00:01

Running transaction check

Running transaction test

Transaction test succeeded

Running transaction

正在安装 : 1:libuv-1.29.1-1.el7.x86_64 1/3

正在安装 : 1:nodejs-6.17.1-1.el7.x86_64 2/3

正在安装 : 1:npm-3.10.10-1.6.17.1.1.el7.x86_64 3/3

验证中 : 1:npm-3.10.10-1.6.17.1.1.el7.x86_64 1/3

验证中 : 1:nodejs-6.17.1-1.el7.x86_64 2/3

验证中 : 1:libuv-1.29.1-1.el7.x86_64 3/3

 

已安装:

nodejs.x86_64 1:6.17.1-1.el7

 

作为依赖被安装:

libuv.x86_64 1:1.29.1-1.el7 npm.x86_64 1:3.10.10-1.6.17.1.1.el7

 

完毕!

[root@localhost ~]#

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

yum install npm

 

[root@localhost ~]# yum install npm

已加载插件:fastestmirror, langpacks

Repository packages-microsoft-com-prod is listed more than once in the configuration

Loading mirror speeds from cached hostfile

* base: mirrors.aliyun.com

* epel: mirrors.tuna.tsinghua.edu.cn

* extras: mirrors.aliyun.com

* updates: mirrors.cn99.com

软件包 1:npm-3.10.10-1.6.17.1.1.el7.x86_64 已安装并且是最新版本

无须任何处理

[root@localhost ~]#

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值