syntax error in node-hill?

Podnf
Joined 20/06/2019
Posts 820
03:11 PM 18/01/2020
recently, i decided to install node-hill on my raspberry pi. it downloaded fine; however, after downloading node-hill-template.zip, transferring it to my raspberry pi, unzipping it, and running start.js, it didn't work and spat me a syntax error. anyone know what's going on?

here's the command i used with the information it gave me.
``pi@pb-raspberry ~/node-hill-template $ nodejs ./start.js

/home/pi/node_modules/node-hill/dist/index.js:22
const path_1 = require("path");
^^^^^
SyntaxError: Use of const in strict mode.
at Module._compile (module.js:439:25)
at Object.Module.extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:364:17)
at require (modul.ejs:380:17)
at Object.<anonymous> (/home/pi/node-hill-template/start.js:1:74)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)````



additional information:

to get nodejs working and stuff, i downloaded the
nodejsandnpmpackages withapt-get. runningnodedoesn't work, onlynodejsworks. when i runnode, it says command not found.

i'm ssh'd into my raspberry pi from a windows 10 machine using putty, if that changes anything.

also, before installing nodejs and node-hill, i upgraded my system from raspbian wheezy to jessie by changing the words in the repository files and doing
sudo apt-get updateand asudo apt-get dist-upgrade. could this have broken anything?

finally, here's an imgur gallery of some screenshots if i transcribed anything wrong and to prove that
nodedoesn't work whilenodejs` does: https://imgur.com/a/iHW4Mx2


Podnf
Joined 20/06/2019
Posts 820
03:11 PM 18/01/2020
sorry for errors in formatting. i didn't realize it would do that.


Podnf
Joined 20/06/2019
Posts 820
03:23 PM 18/01/2020
b u m p


Dragonian
Joined 29/05/2017
Posts 2,877
05:19 PM 18/01/2020
Type node -v

What version are you using? It needs to be 8 or higher.


[noob] Prevent
Joined 16/04/2017
Posts 19,831
05:22 PM 18/01/2020
what's your nodeJS version

use 8.0 or above

1