centos安装npm
- 2021-11-08 17:53:00
- IDO老徐 原创
- 13127
npm命令是node.js的npm 插件管理器,也就是下载插件安装插件的管理器。
1、安装命令:
[root@isTester-Idoxu rpm]# yum install nodejs
2、安装成功,查看 npm版本
[root@isTester-Idoxu rpm]# npm -v
3.10.10
延伸 ,安装过程:
[root@isTester-Idoxu rpm]# yum install nodejs
Loaded plugins: fastestmirror, langpacks
Determining fastest mirrors
epel | 4.7 kB 00:00:00
extras | 2.9 kB 00:00:00
mysql-connectors-community | 2.6 kB 00:00:00
mysql-tools-community | 2.6 kB 00:00:00
mysql57-community-dmr | 2.6 kB 00:00:00
os | 3.6 kB 00:00:00
updates | 2.9 kB 00:00:00
(1/9): epel/7/x86_64/group_gz | 96 kB 00:00:00
(2/9): epel/7/x86_64/updateinfo | 1.0 MB 00:00:00
(3/9): extras/7/x86_64/primary_db | 243 kB 00:00:00
(4/9): epel/7/x86_64/primary_db | 7.0 MB 00:00:00
(5/9): os/7/x86_64/primary_db | 6.1 MB 00:00:00
(6/9): updates/7/x86_64/primary_db | 12 MB 00:00:00
(7/9): mysql-connectors-community/x86_64/primary_db | 73 kB 00:00:01
(8/9): mysql-tools-community/x86_64/primary_db | 72 kB 00:00:02
(9/9): mysql57-community-dmr/x86_64/primary_db | 288 kB 00:00:03
Resolving Dependencies
--> Running transaction check
---> Package nodejs.x86_64 1:6.17.1-1.el7 will be installed
--> Processing Dependency: npm = 1:3.10.10-1.6.17.1.1.el7 for package: 1:nodejs-6.17.1-1.el7.x86_64
--> Processing Dependency: libuv >= 1:1.9.1 for package: 1:nodejs-6.17.1-1.el7.x86_64
--> Processing Dependency: libuv.so.1()(64bit) for package: 1:nodejs-6.17.1-1.el7.x86_64
--> Running transaction check
---> Package libuv.x86_64 1:1.42.0-2.el7 will be installed
---> Package npm.x86_64 1:3.10.10-1.6.17.1.1.el7 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================================================================================================================
Package Arch Version Repository Size
================================================================================================================================================================================
Installing:
nodejs x86_64 1:6.17.1-1.el7 epel 4.7 M
Installing for dependencies:
libuv x86_64 1:1.42.0-2.el7 epel 141 k
npm x86_64 1:3.10.10-1.6.17.1.1.el7 epel 2.5 M
Transaction Summary
================================================================================================================================================================================
Install 1 Package (+2 Dependent packages)
Total download size: 7.4 M
Installed size: 27 M
Is this ok [y/d/N]: y
Downloading packages:
(1/3): libuv-1.42.0-2.el7.x86_64.rpm | 141 kB 00:00:00
(2/3): npm-3.10.10-1.6.17.1.1.el7.x86_64.rpm | 2.5 MB 00:00:00
(3/3): nodejs-6.17.1-1.el7.x86_64.rpm | 4.7 MB 00:00:00
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 23 MB/s | 7.4 MB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 1:libuv-1.42.0-2.el7.x86_64 1/3
Installing : 1:nodejs-6.17.1-1.el7.x86_64 2/3
Installing : 1:npm-3.10.10-1.6.17.1.1.el7.x86_64 3/3
Verifying : 1:npm-3.10.10-1.6.17.1.1.el7.x86_64 1/3
Verifying : 1:nodejs-6.17.1-1.el7.x86_64 2/3
Verifying : 1:libuv-1.42.0-2.el7.x86_64 3/3
Installed:
nodejs.x86_64 1:6.17.1-1.el7
Dependency Installed:
libuv.x86_64 1:1.42.0-2.el7 npm.x86_64 1:3.10.10-1.6.17.1.1.el7
Complete!
[root@isTester-Idoxu rpm]#
推荐阅读 :软件测试25条职业发展方向 / 21天搞定Linux / Linux部署 / 600位测试工程师现状
1. 所有文章,均为IDO老徐原创(免费学习,欢迎收藏、转发),博客地址 isTester.com
2. 顶部菜单,按栏目查询,可快速检索你需要的所有文章 。看完文章还有不明白的,微信联系 IDO老徐
100 个实战小项目,少亏钱,多赚钱
送《一人企业复利商业化》实体书(包邮)
365 * 24 随时向 IDO老徐 免费提问
微信 957863300
- 软件测试从业者知识体系大纲(脑图)
- 软件测试工程师需要掌握的SQL命令合集(21天掌握)
- 电子书:软件测试综合能力提升@IDO老徐
- 如何选择一台适合日常学习的Linux云服务器 ?
- Centos 下mysql数据库完整安装过程
- 所有你要的软件测试资料打包送上(最新)
- 21天,搞定软件测试从业者必备的Linux命令(完整篇)
- Linux 下 部署 禅道(zentao)项目管理系统
- Mysql安装,解决 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 问题
- git 查看本地仓库,对应的“远程仓库地址”
想了解更多 ?
所有原创软件测试文章都在这
有近10W 软件测试工程师关注
助力「软件测试从业者综合能力提升」
关注后,回复 666 有惊喜
长按/扫码 关注@简尚
我的个人微信 957863300
IDO老徐
全网同名,个人IP公众号
日更10年,每天 1 分钟、解决 1 个问题
职场、副业、轻创业、写作、个人IP
公众号、视频号、小红书、知乎
长按/扫码,关注IDO老徐
关注回复 401 送你一份资料包
联系人: | IDO老徐 |
---|---|
Email: | 957863300@qq.com |
QQ: | 957863300 |
微信: | 957863300 |
微博: | isTester |
网址: | isTester.com |
地址: | 中国 · 广东 · 深圳 |