arrow_back
Back

JavaScript on the server: Node.js and npm

Andrew Dorokhov Andrew Dorokhov schedule 1 min read
menu_book Table of Contents

Node and NPM

Website: open_in_new https://nodejs.org

Node gives JavaScript access to the entire operating system, allowing JavaScript programs to read and write files, send and receive data over the network, and make and serve HTTP requests.

Installation

Install the Node.js:

sudo apt install nodejs

Install the Node.js package manager:

sudo apt install npm

NPM

Create a package.json:

npm init

npm init is a setup “wizard” for creating package.json files.

API

Output:

console.log("Hello");
code

Need Help with Development?

Happy to help — reach out via the contacts or go straight to my Upwork profile.

work View Upwork Profile arrow_forward
Next Article

JavaScript desktop apps: Electron overview

arrow_forward