• Categories
    Category
  • Categories
    Category
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial Comments FAQ Related Articles

How To Install nodejs 10.16 On CentOS 7.6

  • 00:58 yum install gcc-c++ make -y
  • 01:08 curl -sL https://rpm.nodesource.com/setup_10.x | sudo -E bash -
  • 01:16 yum install nodejs -y
  • 01:30 node -v
  • 01:37 npm -v
5840

Installation of NodeJS 10.16 On CentOS 7.6

Dependencies :

gcc-c++ make 

Nodejs Latest LTS version :

curl -sL https://rpm.nodesource.com/setup_10.x | sudo -E bash -

Installation Procedure:

Install the dependencies that are essential for the nodejs.

[root@linuxhelp ~]# yum install gcc-c++ make -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: ftp.iitm.ac.in
 * extras: ftp.iitm.ac.in
 * updates: ftp.iitm.ac.in
base                                                                                                                  | 3.6 kB  00:00:00     
extras                                                                                                                | 3.4 kB  00:00:00     
extras/7/x86_64/primary_db                                                                                            | 205 kB  00:00:01     
Package 1:make-3.82-23.el7.x86_64 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package gcc-c++.x86_64 0:4.8.5-36.el7_6.2 will be installed
.
.
.
.
.
.
.
Installed:
  gcc-c++.x86_64 0:4.8.5-36.el7_6.2                                                                                                          

Dependency Installed:
  cpp.x86_64 0:4.8.5-36.el7_6.2             gcc.x86_64 0:4.8.5-36.el7_6.2             libstdc++-devel.x86_64 0:4.8.5-36.el7_6.2            

Dependency Updated:
  libgcc.x86_64 0:4.8.5-36.el7_6.2             libgomp.x86_64 0:4.8.5-36.el7_6.2             libstdc++.x86_64 0:4.8.5-36.el7_6.2            

Complete!

Download the latest version of the node package manager.

[root@linuxhelp ~]# curl -sL https://rpm.nodesource.com/setup_10.x | sudo -E bash -

## Installing the NodeSource Node.js 10.x repo...


## Inspecting system...

+ rpm -q --whatprovides redhat-release || rpm -q --whatprovides centos-release || rpm -q --whatprovides cloudlinux-release || rpm -q --whatprovides sl-release
+ uname -m

## Confirming "el7-x86_64" is supported...

+ curl -sLf -o /dev/null 'https://rpm.nodesource.com/pub_10.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm'

## Downloading release setup RPM...

+ mktemp
+ curl -sL -o '/tmp/tmp.UnauCa3u6M' 'https://rpm.nodesource.com/pub_10.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm'

## Installing release setup RPM...

+ rpm -i --nosignature --force '/tmp/tmp.UnauCa3u6M'

## Cleaning up...

+ rm -f '/tmp/tmp.UnauCa3u6M'

## Checking for existing installations...

+ rpm -qa 'node|npm' | grep -v nodesource

## Run `sudo yum install -y nodejs` to install Node.js 10.x and npm.
## You may also need development tools to build native addons:
     sudo yum install gcc-c++ make
## To install the Yarn package manager, run:
     curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
     sudo yum install yarn

Install the latest version of nodejs.

[root@linuxhelp ~]# yum install nodejs -y
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: ftp.iitm.ac.in
 * extras: ftp.iitm.ac.in
 * updates: ftp.iitm.ac.in
Resolving Dependencies
--> Running transaction check
---> Package nodejs.x86_64 2:10.16.0-1nodesource will be installed
.
.
.
.
Installed:
  nodejs.x86_64 2:10.16.0-1nodesource                                                                                                        

Complete!

Check the version of the nodejs with the following command.

[root@linuxhelp ~]# node -v
v10.16.0

**Verify the version of npm with the following command. **

[root@linuxhelp ~]# npm -v
6.9.0

With this, installation of nodejs 10.16.0 version On CentOS 7.6 comes to end.

Tags:
owen
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

What is a node module in node.js?

A

Node Module in node.js is a simple or complex functionality organized in single or multiple Javascript which can be reused throughout the Node.js application.

Q

What can we do with nodejs?

A

you can built chat applications,control car remotely,play pokemon.control a computer remotely,build your own hangouts and so on can be done using nodejs.

Q

IS nodejs frontend or backend ?

A

node.js is a run time environment which lets users choose how to use, whether frontend or backend and one common language can be used as backend or frontend.

Q

Is nodejs better than JAVA ?

A

Java will almost be faster than node.js because sharing memory amongst threads is a lot faster than the IPC.

Q

What is nodejs best used for?

A

node.js is primarily used for non-blocking, event-driven servers, due to its single threaded nature. It's used for traditional web sites and back-end API services but was designed with real-time,push-based architectures in mind.

Related Tutorials in How To Install nodejs 10.16 On CentOS 7.6

Related Tutorials in How To Install nodejs 10.16 On CentOS 7.6

How To Install AnyDesk on Centos 7
How To Install AnyDesk on Centos 7
Apr 2, 2018
How to install Tiki Wiki CMS Groupware on CentOS 7
How to install Tiki Wiki CMS Groupware on CentOS 7
May 31, 2018
How to install PHP ImageMagick on CentOS 7
How to install PHP ImageMagick on CentOS 7
Nov 4, 2017
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
How to Upgrade and Downgrade the PHP Versions on CentOS 7.6
Jun 4, 2019
How to install Apache from Source Code on CentOS 7
How to install Apache from Source Code on CentOS 7
Oct 21, 2017
How to enable or disable repositories in CentOS
How to enable or disable repositories in CentOS
Mar 28, 2018
How to install AWStats on CentOS 7
How to install AWStats on CentOS 7
Dec 8, 2017
How to install Apache JMeter in CentOS 7
How to install Apache JMeter in CentOS 7
Mar 24, 2017

Related Forums in How To Install nodejs 10.16 On CentOS 7.6

Related Forums in How To Install nodejs 10.16 On CentOS 7.6

CentOS
connor class=
How To Completely Remove Apache package On CentOS 7.6
May 14, 2019
CentOS
ceriaimmaculate class=
setfacl : command not found
Jan 3, 2018
CentOS
mason class=
Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1)
Nov 20, 2018
CentOS
landon class=
Command to find SNMP Version
May 28, 2018
CentOS
arjitharon class=
cannot start minio service help
Mar 10, 2018
Apache tomcat
AadrikaAnshu class=
Cannot find ./catalina.sh The file is absent or does not have execute permission This file is needed to run this program
Jun 17, 2019
gitlab
caden class=
Insufficient space in download directory /var/cache/yum/x86_64/6/base/packages
Jul 22, 2019
OpenVAS
frank class=
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=7&arch=x86_64&repo=os&infra=stock error was 14: curl#6 - "Could not resolve host: mirrorlist.centos.org; Unknown error"
Dec 20, 2018

Related News in How To Install nodejs 10.16 On CentOS 7.6

Related News in How To Install nodejs 10.16 On CentOS 7.6

Docker friendly Alpine Linux gets hardened Node.js
Docker friendly Alpine Linux gets hardened Node.js
Apr 19, 2017
JavaScript package manager npm removes malicious packages that were stealing data
JavaScript package manager npm removes malicious packages that were stealing data
Aug 5, 2017
Back To Top!
Rank
User
Points

Top Contributers

userNamenaveelansari
135850

Top Contributers

userNameayanbhatti
92510

Top Contributers

userNamehamzaahmed
32150

Top Contributers

1
userNamelinuxhelp
31040

Top Contributers

userNamemuhammadali
24500
Can you help Sebastian ?
How to change non required to required field in SuiteCRM Custom/Default Modules

How to change not required to the required field in SuiteCRM Custom/Default Modules?

Networking
  • Routing
  • trunk
  • Netmask
  • Packet Capture
  • domain
  • HTTP Proxy
Server Setup
  • NFS
  • KVM
  • Memory
  • Sendmail
  • WebDAV
  • LXC
Shell Commands
  • Cloud commander
  • Command line archive tools
  • last command
  • Shell
  • terminal
  • Throttle
Desktop Application
  • Linux app
  • Pithos
  • Retrospect
  • Scribe
  • TortoiseHg
  • 4Images
Monitoring Tool
  • Monit
  • Apache Server Monitoring
  • EtherApe 
  • Arpwatch Tool
  • Auditd
  • Barman
Web Application
  • Nutch
  • Amazon VPC
  • FarmWarDeployer
  • Rukovoditel
  • Mirror site
  • Chef
Contact Us | Terms of Use| Privacy Policy| Disclaimer
© 2025 LinuxHelp.com All rights reserved. Linux™ is the registered trademark of Linus Torvalds. This site is not affiliated with linus torvalds in any way.