11

Installation

Install the version LTS 12.x of Node.js:

$ curl -sL https://deb.nodesource.com/setup_12.x -o nodesource_setup.sh
$ sudo bash nodesource_setup.sh
## Installing the NodeSource Node.js 12.x repo...
$ sudo apt install -y nodejs

Check the installation:

$ nodejs -v
v12.14.1
$ npm -v
6.13.7

Create the folder nodejs with the subfolder node_modules:

$ mkdir -p ~/nodejs/node_modules

Download the code of So-o in the folder nodejs:

  1. nodejs
    1. node_modules
    2. So-o.js
    3. OL.js
    4. Root.js
    5. ...
    6. Makefile
    7. ...

Link all the code files from So-o in the folder node_modules while replacing the extension .js by .mjs:

$ make setup
for f in So-o.js Root.js OL.js Once.js Application.js Responder.js; do \
	ln -f $f node_modules/`basename $f .js`.mjs; \
done
SEE ALSO

Interface, A game of poker

Comments

Your comment:
[p] [b] [i] [u] [s] [quote] [pre] [br] [code] [url] [email] strip help 2000

Enter a maximum of 2000 characters.
Improve the presentation of your text with the following formatting tags:
[p]paragraph[/p], [b]bold[/b], [i]italics[/i], [u]underline[/u], [s]strike[/s], [quote]citation[/quote], [pre]as is[/pre], [br]line break,
[url]http://www.izend.org[/url], [url=http://www.izend.org]site[/url], [email]izend@izend.org[/email], [email=izend@izend.org]izend[/email],
[code]command[/code], [code=language]source code in c, java, php, html, javascript, xml, css, sql, bash, dos, make, etc.[/code].