Install Node.js and NPM on Linux
NodeJS v10.0.0 has been released yesterday. It is the seventh major nodejs release since the launch of NodeJS foundation. This major release ships with some prominent features as listed below.
Full support for N-API Easy getting started with Time-Travel Debugging via a new Visual Studio Code Extension TTD support for generators and async functions Support for Inspector protocol Increased stability and other assorted improvements
For more details, refer the Node.js 10.0.0 releases notes.\
How to Install NodeJS on Linux
There are quite a few ways to install Nodejs. The first method is for those who wants to use the stable NodeJS version. The second method and third methods can get you the latest available versions. In particular, the third method is the best way to avoid permission issues while installing packages globally. I will explain all of them.
1. Install Nodejs using your distribution’s package manager (Stable, but outdated versions)
Nodejs is available in the default repositories of most Linux distributions. It might not be latest version, but stable. If you want to have a stable Node.js on your Linux, you better install it using your distribution’s package manager as shown below.
$ sudo pacman -S nodejs npm
On Debian, Ubuntu, Linux Mint:
$ sudo apt-get install nodejs npm
On RHEL, CentOS, you need to enable EPEL repository first.
$ sudo yum install epel-release
And, then install Nodejs using command:
$ sudo yum install nodejs npm
$ sudo dnf install nodejs npmhow to create a website in html