3 homepage: https://nodejs.org
5 Node.jsĀ® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
14 Use `@lts` for long-term support and the `@beta` tag for pre-releases, or
15 `@x.y.z` for a specific version.
19 Node is great for simple, snappy HTTP(S) servers, and for stitching APIs
20 together with minimal fuss or muss.
22 Installing node via webi will:
24 - pick a compatible version from the
25 [Node Releases API](https://nodejs.org/dist/index.tab)
26 - download and unpack to `$HOME/.local/opt/node/`
27 - update your `PATH` in `$HOME/.config/envman/PATH.env`
28 - run `npm config set scripts-prepend-node-path=true`
29 - (prevents conflicts with other installed node versions)
30 - absolutely leave system file permisions alone
31 - (no dreaded `sudo npm` permission errors)
36 node -e 'console.log("Hello, World!")'
40 ### A Simple Web Server
45 var http = require('http');
46 var app = function (req, res) {
47 res.end('Hello, World!');
49 http.createServer(app).listen(8080, function () {
50 console.info('Listening on', this.address());
64 npm install --save express
72 var express = require('express');
75 app.use('/', function (req, res, next) {
76 res.end('Hello, World!');
87 var http = require('http');
88 var app = require('./app.js');
90 http.createServer(app).listen(8080, function () {
91 console.info('Listening on', this.address());