• Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • Categories
    Category
    {{ postCtrl.tags }}
    • {{ category.tag_type }}

      • {{tag.tag_name}}
      • View more
  • News
  • Tutorials
  • Forums
  • Tags
  • Users
Tutorial News Comments FAQ Related Articles

How to install Node.js 8 on centos7

{{postValue.id}}

Node.js 8 Installation on centos7

Node.js is an open source, cross-platform runtime environment for developing server-side and networking applications. Node.js applications are written in JavaScript, and can be run within the Node.js runtime on mac os, Microsoft Windows, and Linux.Node.js also provides a rich library of various JavaScript modules which simplifies the development of web applications using Node.js to a great extent.

Installation

Download the node packages.

Use the Following command to download the node packages from the url.

[root@linuxhelp11 ~]# curl -sL https://rpm.nodesource.com/setup_8.x | sudo -E bash –
##Installing the NodeSource Node.js 8.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
.
.
.
+ rpm -qa 'node|npm' | grep -v nodesource

##Run `sudo yum install -y nodejs` to install Node.js 8.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

Next you can use the following command to install the node packages.

[root@linuxhelp11 ~]# yum install -y nodejs
Loaded plugins: fastestmirror, langpacks
base                                                            | 3.6 kB  00:00:00     
extras                                                          | 3.4 kB  00:00:00     
nodesource                                                      | 2.5 kB  00:00:00     
updates                                                         | 3.4 kB  00:00:00     
(1/5): nodesource/x86_64/primary_db                             | 7.6 kB  00:00:01    
.
.
.
Warning: RPMDB altered outside of yum.
  Installing : 2:nodejs-8.12.0-1nodesource.x86_64                                  1/1 
  Verifying  : 2:nodejs-8.12.0-1nodesource.x86_64                                  1/1 

Installed:
  nodejs.x86_64 2:8.12.0-1nodesource                                                   

Complete!

To verify the version of the node use the Following command

[root@linuxhelp11 ~]# node -v
V8.12.0

With this The method to install Node.js 8 on centos7 comes to an end.

Tags:
ethan
Author: 

Comments ( 0 )

No comments available

Add a comment
{{postCtrl.cmtErrMsg}}

Frequently asked questions ( 5 )

Q

Why is Node.js Single-threaded?

A

Node.js is single-threaded for async processing. By doing async processing on a single-thread under typical web loads, more performance and scalability can be achieved as opposed to the typical thread-based implementation.

Q

Which kind of database can be used for Node.js?

A

Just like with hosting providers, Node.js can work with any database, both NoSQL such as MongoDB and SQL ones

Q

What is callback hell in Node.js?

A

Callback hell is the result of heavily nested callbacks that make the code not only unreadable but also difficult to maintain

Q

What is the role of REPL in Node.js?

A

As the name suggests, REPL (Read Eval print Loop) performs the tasks of – Read, Evaluate, Print and Loop. The REPL in Node.js is used to execute ad-hoc Javascript statements. The REPL shell allows entry to javascript directly into a shell prompt and evaluates the results. For the purpose of testing, debugging, or experimenting, REPL is very critical.

Q

Where the Node.js will be used?

A

Node.js is used to build scalable programs especially web applications which are computationally simple but are frequently accessed

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 Ganesh Konka ?
Zentya 6.1 http proxy configuration

please send link for creating zentyal 6.1 for http proxy and firewall as gateway.

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.