Chris Hager
Programming, Technology & More

Node.Js

RSS Feed

How to install Node.js 6.x Long-Term Support (LTS) on Ubuntu/Debian and CentOS

Node.js 6.x is the current Node.js long-term support (LTS) release, with Node.js v6.9.4 being the most recent release as of time of writing. This guide shows a quick and reliable way to install the current Node.js 6.x LTS version (including npm) on Ubuntu/Debian and CentOS. console.log("Hello World"); We will use the system package manager (eg. apt or yum) to install Node.js 6.x, to be able to continually receive security updates without risking a major version jump with possibly breaking changes.


How to install Node.js 7.x on Ubuntu/Debian and CentOS

Node.js 7.x is the current stable release of the Node.js, which is actively maintained in parallel to Node.js 6.x Long-Term Support (LTS). At the moment, the latest version is Node.js v7.4.0, and you can find the Node.js v7.x Changelog here on Github. This guide shows a quick and reliable way to install the current Node.js 7.x version (including npm) on Ubuntu/Debian and CentOS, using the system package manager, in order to continually receive security updates without risking a major version jump with possibly breaking changes.


Custom Errors in TypeScript 2.1

TypeScript 2.1 introduced a number of breaking changes, among them that “Extending built-ins like Error, Array, and Map may no longer work”. For a subclass like the following: class FooError extends Error { constructor(m: string) { super(m); } sayHello() { return "hello " + this.message; } } methods may be undefined on objects returned by constructing these subclasses, so calling sayHello will result in an error. instanceof will be broken between instances of the subclass and their instances, so (new FooError()) instanceof FooError will return false.


How to install Node.js 5.x on CentOS and Ubuntu/Debian

Node.js v5.x is deprecated. Take a look at the current instructions on how to install Node.js 6.x Long-Term Support (LTS) and Node.js 7.x. Node.js v5.0.0 (stable) was released today, just a month after the v4.x long-term-support (LTS) release! Here is a quick and easy way to install the current Node.js 5.x (including npm) on CentOS and Ubuntu/Debian. Installing Node.js 5.x on CentOS 7 The easiest way is to install the latest Node.


How to install Node.js 4.x (LTS) on CentOS

Node.js v4.x is deprecated. Take a look at the current instructions on how to install Node.js 6.x Long-Term Support (LTS) and Node.js 7.x. Recently io.js and node.js merged again into a single codebase in Node v4.0.0. The fork happened in December 2014 and io.js has seen rapid improvements and fast uptake of upstream V8 features. Now the merge has happened, and with it comes a lot of features from the io.

swirl