Hi,
which node version is used
Since this tutorial Ubuntu 18.04, OP should've used Node version 8.10 or older.
Source: https://packages.ubuntu.com/search?keywords=nodejsBut take note Node version 8 reached end of life and NOMP suggest you to use Node version 10 or higher.