[root@kunpeng opt]# yum install nodejs
Loaded plugins: fastestmirror, product-id, search-disabled-repos, subscription-manager
This system is not registered with an entitlement server. You can use subscription-manager to register.
Determining fastest mirrors
base | 3.6 kB 00:00:00
docker-ce-stable | 3.5 kB 00:00:00
epel | 5.4 kB 00:00:00
extras | 2.9 kB 00:00:00
updates | 2.9 kB 00:00:00
updates/7/aarch64/primary_db | 2.1 MB 00:00:00
Resolving Dependencies
--> Running transaction check
---> Package nodejs.aarch64 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.aarch64
--> Processing Dependency: libuv >= 1:1.9.1 for package: 1:nodejs-6.17.1-1.el7.aarch64
--> Processing Dependency: libicudata.so.50()(64bit) for package: 1:nodejs-6.17.1-1.el7.aarch64
--> Processing Dependency: libicui18n.so.50()(64bit) for package: 1:nodejs-6.17.1-1.el7.aarch64
--> Processing Dependency: libicuuc.so.50()(64bit) for package: 1:nodejs-6.17.1-1.el7.aarch64
--> Processing Dependency: libuv.so.1()(64bit) for package: 1:nodejs-6.17.1-1.el7.aarch64
--> Running transaction check
---> Package libicu.aarch64 0:50.2-4.el7_7 will be installed
---> Package libuv.aarch64 1:1.30.1-1.el7 will be installed
---> Package npm.aarch64 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 aarch64 1:6.17.1-1.el7 epel 4.5 M
Installing for dependencies:
libicu aarch64 50.2-4.el7_7 base 6.8 M
libuv aarch64 1:1.30.1-1.el7 epel 132 k
npm aarch64 1:3.10.10-1.6.17.1.1.el7 epel 2.5 M
Transaction Summary
===========================================================================================================================================================================
Install 1 Package (+3 Dependent packages)
Total download size: 14 M
Installed size: 51 M
Is this ok [y/d/N]: y
Downloading packages:
(1/4): libuv-1.30.1-1.el7.aarch64.rpm | 132 kB 00:00:00
(2/4): npm-3.10.10-1.6.17.1.1.el7.aarch64.rpm | 2.5 MB 00:00:00
(3/4): libicu-50.2-4.el7_7.aarch64.rpm | 6.8 MB 00:00:05
(4/4): nodejs-6.17.1-1.el7.aarch64.rpm | 4.5 MB 00:00:15
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Total 931 kB/s | 14 MB 00:00:15
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 1:libuv-1.30.1-1.el7.aarch64 1/4
Installing : libicu-50.2-4.el7_7.aarch64 2/4
Installing : 1:npm-3.10.10-1.6.17.1.1.el7.aarch64 3/4
Installing : 1:nodejs-6.17.1-1.el7.aarch64 4/4
Verifying : libicu-50.2-4.el7_7.aarch64 1/4
Verifying : 1:libuv-1.30.1-1.el7.aarch64 2/4
Verifying : 1:nodejs-6.17.1-1.el7.aarch64 3/4
Verifying : 1:npm-3.10.10-1.6.17.1.1.el7.aarch64 4/4
Installed:
nodejs.aarch64 1:6.17.1-1.el7
Dependency Installed:
libicu.aarch64 0:50.2-4.el7_7 libuv.aarch64 1:1.30.1-1.el7 npm.aarch64 1:3.10.10-1.6.17.1.1.el7
Complete!
[root@kunpeng opt]#
存放到/opt/nodejs_pro目录下
cd /opt/nodejs_pro/
npm install
[root@kunpeng-centos nodejs_pro]# cd /opt/nodejs_pro/
[root@kunpeng-centos nodejs_pro]# npm install
npm WARN deprecated [email protected]: Deprecated due to CVE-2021-21366 resolved in 0.5.0
[email protected] /opt/nodejs_pro
├─┬ [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ └─┬ [email protected]
│ ├── [email protected]
│ └─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├─┬ [email protected]
│ │ ├── [email protected]
│ │ ├─┬ [email protected]
│ │ │ └── [email protected]
│ │ ├── [email protected]
│ │ └── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
├─┬ [email protected]
│ ├── [email protected]
│ └── [email protected]
├── [email protected]
└── [email protected]
[root@kunpeng nodejs_pro]#
npm start