Syntax error on startup

I dont have a detailed log on the past errors. The main problem was that it detected a version 12 and refused to install a new one.
nvm -v returns
0.39.6
which nvm returns nothing.

A good option might be to just reflash the raspy image, but I suspect that will get a nodejs v12 in it again.