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:
- nodejs
- node_modules
- So-o.js
- OL.js
- Root.js
- ...
- Makefile
- ...
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
Comments