Download the NodeJS Source Code from https://tinyurl.com/getnodejs into your Downloads folder.
Unzip the folder inside using Archive Manager into Downloads.
Run these commands:
$ sudo apt-get install build-essential
$ cd ~/Downloads/node-v8.11.2/
$ ./configure
$ make -J5
This command may take up to 40 minutes depending on how fast your computer is
$ sudo make install
$ sudo apt-get install git
$ cd
$ git clone https://github.com/LLK/scratch-gui.git
$ cd scratch-gui
$ npm install
Scratch 3.0 is now installed. To run it run...
$ reset;cd ~/scratch-gui;npm start
...and go to localhost:8601
OR
If you know your IP address goto example.ip.addr.ess:8601 on any computer in your network
First we install build-essential. This contains the code which allows us to actually compile the NodeJS source code
Then we run the configure script which sets up all the code which compiles and installs it
We build/compile the software which can take up to 40 minutes
Then we install the files so anybody on the computer can use them
npm install - We install the necessary dependencies
This command is actually three commands jammed into 1
reset – clears the terminal screen
cd ~/scratch-gui – changes directory to the scratch 3.0 directory
npm start – starts the local webserver which runs scratch 3.0