Mac安装
https://nodejs.org/en/download/
Windows安装
Linux安装
1.安装地址 -github
https://github.com/nodesource/distributions
2.安装命令 yum install -y nodejs
[root@izwz91h49n3mj8r232gqwez weblogic]# yum install -y nodejs
[root@izwz91h49n3mj8r232gqwez weblogic]# yum install -y nodejs
Loaded plugins: fastestmirror
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 | 3.4 kB 00:00:00
mysql-connectors-community | 2.5 kB 00:00:00
mysql-tools-community | 2.5 kB 00:00:00
mysql56-community | 2.5 kB 00:00:00
nodesource | 2.5 kB 00:00:00
updates | 3.4 kB 00:00:00
(1/9): extras/7/x86_64/primary_db | 215 kB 00:00:00
(2/9): epel/x86_64/updateinfo | 998 kB 00:00:00
(3/9): docker-ce-stable/x86_64/primary_db | 32 kB 00:00:00
(4/9): epel/x86_64/primary_db | 6.8 MB 00:00:00
(5/9): mysql-connectors-community/x86_64/primary_db | 44 kB 00:00:00
(6/9): updates/7/x86_64/primary_db | 7.4 MB 00:00:00
(7/9): mysql-tools-community/x86_64/primary_db | 61 kB 00:00:00
(8/9): nodesource/x86_64/primary_db | 47 kB 00:00:00
(9/9): mysql56-community/x86_64/primary_db | 233 kB 00:00:01
Resolving Dependencies
--> Running transaction check
---> Package nodejs.x86_64 2:8.16.1-1nodesource will be installed
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================================================================================
Installing:
nodejs x86_64 2:8.16.1-1nodesource nodesource 16 M
Transaction Summary
===============================================================================================================================================================================================
Install 1 Package
Total download size: 16 M
Installed size: 49 M
Downloading packages:
warning: /var/cache/yum/x86_64/7/nodesource/packages/nodejs-8.16.1-1nodesource.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 34fa74dd: NOKEY ] 11 MB/s | 11 MB 00:00:00 ETA
Public key for nodejs-8.16.1-1nodesource.x86_64.rpm is not installed
nodejs-8.16.1-1nodesource.x86_64.rpm | 16 MB 00:00:01
Retrieving key from file:///etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL
Importing GPG key 0x34FA74DD:
Userid : "NodeSource <gpg-rpm@nodesource.com>"
Fingerprint: 2e55 207a 95d9 944b 0cc9 3261 5ddb e8d4 34fa 74dd
Package : nodesource-release-el7-1.noarch (installed)
From : /etc/pki/rpm-gpg/NODESOURCE-GPG-SIGNING-KEY-EL
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Warning: RPMDB altered outside of yum.
Installing : 2:nodejs-8.16.1-1nodesource.x86_64 1/1
Verifying : 2:nodejs-8.16.1-1nodesource.x86_64 1/1
Installed:
nodejs.x86_64 2:8.16.1-1nodesource
Complete!
3.安装结果验证
查看版本
node -v
[root@izwz91h49n3mj8r232gqwez weblogic]# node -v
v8.16.1
[root@izwz91h49n3mj8r232gqwez weblogic]#