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

How to install Nodejs 8 on Ubuntu 18.04

4764

To install Node.js 8 on Ubuntu 18.04

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

Update the repository. To update the repository files use the following command.

root@linuxhelp:~# apt update
Hit:1 https://deb.nodesource.com/node_8.x bionic InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu bionic InRelease               
Hit:3 http://security.ubuntu.com/ubuntu bionic-security InRelease        
Hit:4 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease       
Hit:5 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease
Reading package lists... Done                     
Building dependency tree       
Reading state information... Done
29 packages can be upgraded. Run 'apt list --upgradable' to see them.

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

root@linuxhelp:~# curl -sL https://deb.nodesource.com/setup_8.x | sudo bash -

##Installing the NodeSource Node.js 8.x LTS Carbon repo...

##Populating apt-get cache...

+ apt-get update
Hit:1 http://in.archive.ubuntu.com/ubuntu bionic InRelease                             
Hit:2 https://deb.nodesource.com/node_10.x bionic InRelease                            
Hit:3 http://in.archive.ubuntu.com/ubuntu bionic-updates InRelease                     
Hit:4 http://security.ubuntu.com/ubuntu bionic-security InRelease       
Hit:5 http://in.archive.ubuntu.com/ubuntu bionic-backports InRelease    
Reading package lists... Done                     
.
.
.
##Run `sudo apt-get install -y nodejs` to install Node.js 8.x LTS Carbon and npm
##You may also need development tools to build native addons:
     sudo apt-get install gcc g++ make
##To install the Yarn package manager, run:
     curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
     echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
     sudo apt-get update && sudo apt-get install yarn

Install the node packages. You can use the following command to install the node packages.

root@linuxhelp:~# apt install nodejs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  nodejs
0 upgraded, 1 newly installed, 0 to remove and 29 not upgraded.
Need to get 13.5 MB of archives.
After this operation, 64.0 MB of additional disk space will be used.
Get:1 https://deb.nodesource.com/node_8.x bionic/main amd64 nodejs amd64 8.12.0-1nodesource1 [13.5 MB]
Fetched 13.5 MB in 18s (744 kB/s)                                                      
Selecting previously unselected package nodejs.
(Reading database ... 166393 files and directories currently installed.)
Preparing to unpack .../nodejs_8.12.0-1nodesource1_amd64.deb ...
Unpacking nodejs (8.12.0-1nodesource1) ...
Setting up nodejs (8.12.0-1nodesource1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...

Find the version of the node. 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 ubuntu 18.04 comes to an end.

Tags:
elijah
Author: 

Comments ( 0 )

No comments available

Add a comment

Frequently asked questions ( 5 )

Q

What are the functionalities of NPM in Node.js?

A

NPM (Node package Manager) provides two functionalities:

-Online repository for Node.js packages
-Command line utility for installing packages, version management and dependency management of Node.js packages

Q

What is the difference between Node.js and Ajax?

A

Node.js and Ajax (Asynchronous JavaScript and XML) are the advanced implementation of JavaScript. They all serve completely different purposes.

Ajax is primarily designed for dynamically updating a particular section of a page’s content, without having to update the entire page.

Node.js is used for developing client-server applications.

Q

Explain chaining in Node.js?

A

Chaining is a mechanism whereby the output of one stream is connected to another stream creating a chain of multiple stream operations

Q

What are Globals in Node.js?

A

Three keywords in Node.js constitute as Globals. These are:

Global – it represents the Global namespace object and acts as a container for all other objects.
Process – It is one of the global objects but can turn a synchronous function into an async callback. It can be accessed from anywhere in the code and it primarily gives back information about the application or the environment.
Buffer – it is a class in Node.js to handle binary data.

Q

What are Node.js modules?

A

Node.js modules are just libraries and third-party pieces of code that developers can use to make their work much faster. If you’re familiar with Ruby, they are the equivalent of gems.

Modules are also the thing that makes Node.js such a great choice. The numbers of modules on npmjs.com, the primary Node.js modules registry, is steadily growing thanks to the really active community

Related Tutorials in How to install Nodejs 8 on Ubuntu 18.04

Related Tutorials in How to install Nodejs 8 on Ubuntu 18.04

How to install Meld tool in Ubuntu
How to install Meld tool in Ubuntu
Feb 25, 2017
How to install Dconf-Editor on Ubuntu 18.04
How to install Dconf-Editor on Ubuntu 18.04
Jul 14, 2018
How to install and update OpenSSL on Ubuntu 16.04
How to install and update OpenSSL on Ubuntu 16.04
Mar 9, 2017
How to install GLib 2.0 on Ubuntu 17.04
How to install GLib 2.0 on Ubuntu 17.04
May 22, 2017
How to Install Android Emulator on Ubuntu 20.4.1
How to Install Android Emulator on Ubuntu 20.4.1
Jul 13, 2021
How To Install AnyDesk on Ubuntu 16.04
How To Install AnyDesk on Ubuntu 16.04
Apr 4, 2018
How to install Genymotion 2.12.1 on Ubuntu 18.04
How to install Genymotion 2.12.1 on Ubuntu 18.04
Jul 9, 2018
How to install Timeshift 18.4 on Ubuntu 18.04
How to install Timeshift 18.4 on Ubuntu 18.04
Jul 6, 2018

Related Forums in How to install Nodejs 8 on Ubuntu 18.04

Related Forums in How to install Nodejs 8 on Ubuntu 18.04

Ubuntu
matthew class=
Failed to enable unit: Refusing to operate on linked unit file sshd.service
Apr 15, 2019
Ubuntu
mason class=
Passwd: You may not view or modify password information for root On Ubuntu 19.04
May 27, 2019
Ubuntu
isaac class=
/etc/apt/sources.list Permission denied
May 18, 2017
Ubuntu
yousuf class=
lsb_release command not working : Debian
Jan 18, 2018
ifconfig command
jackbrookes class=
what is the location of the ifconfig program on your machine?
Jan 4, 2018
Ubuntu
mason class=
"E: Package 'php-mcrypt' has no installation candidate" error on Ubuntu 20.4.1
Mar 15, 2021
NFS
luke class=
clnt_create: RPC: Program not registered
Apr 25, 2017
Apache
isaac class=
How to disable apache welcome page on Ubuntu
Dec 15, 2018

Related News in How to install Nodejs 8 on Ubuntu 18.04

Related News in How to install Nodejs 8 on Ubuntu 18.04

How To Install Mixxx on Ubuntu 16.04
How To Install Mixxx on Ubuntu 16.04
Oct 11, 2017
Ubuntu 17.04 released with greater expectations
Ubuntu 17.04 released with greater expectations
Apr 15, 2017
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Ubuntu Core now available on i.MX6 based TS-4900 thanks to Technologic Systems Inc.
Mar 1, 2017
Docker friendly Alpine Linux gets hardened Node.js
Docker friendly Alpine Linux gets hardened Node.js
Apr 19, 2017
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Ubuntu 17.10 Artful Aardvark Beta 1 is now here. Download Now
Sep 2, 2017
Ubuntu Unity is no more: One Linux dream has been axed
Ubuntu Unity is no more: One Linux dream has been axed
Apr 7, 2017
What’s next for Ubuntu Linux Desktop?
What’s next for Ubuntu Linux Desktop?
Apr 11, 2017
Say Hi to Ubuntu's new mascot
Say Hi to Ubuntu's new mascot
Mar 22, 2019
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.