DEV Community

miku86
miku86

Posted on • Edited on

5

NodeJS: What is it & How To Install it

What is NodeJS?

  • a run-time environment that executes JavaScript code outside of a browser
  • has an event-driven architecture capable of asynchronous I/O, therefore used in many real-time web applications, e.g. chat applications
  • two main use cases: server-side scripts & command line tools
  • no need to learn two languages to write fullstack applications
  • has a big ecosystem

How To Install it?

Windows

  1. Go to the NodeJS download page and click on Windows Installer
  2. Go through the Installer

macOS

  1. Go to the NodeJS download page and click on macOS Installer
  2. Go through the Installer

Ubuntu

  1. curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
  2. sudo apt-get install -y nodejs

Arch

  1. pacman -S nodejs npm

Further Reading

NodeJS Homepage
NodeJS Documentation
NodeJS on Wikipedia
npm

Top comments (0)

11 Tips That Make You a Better Typescript Programmer

typescript

1 Think in {Set}

Type is an everyday concept to programmers, but it’s surprisingly difficult to define it succinctly. I find it helpful to use Set as a conceptual model instead.

#2 Understand declared type and narrowed type

One extremely powerful typescript feature is automatic type narrowing based on control flow. This means a variable has two types associated with it at any specific point of code location: a declaration type and a narrowed type.

#3 Use discriminated union instead of optional fields

...

Read the whole post now!

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay