Raspberri Pi Zero W moment is not defined.

During npm install I gethttp-auth@3.1.3: wanted: {"node":">=4.6.1"} (current: {"node":"4.2.1","npm":"2.14.7"})
I’m not sure if having an older version will change anything but 4.2.1 is the latest for armhf.

I’m running MagicMirror as node serveronly and using midori as my driver. It loads fine without config.js. But when I switch to using the config file I getmoment is not defined in compliments.js.
For some reason it also errors on the ES6 syntax? The function operator => also errors so I changed compliment.js to use the standard function syntax.

I’ve just deleted all node_modules and am rerunning npm install.
I get this error

That did it thanks. Weird that npm install wasn’t installing the vender dependencies. I assume it’s because the electron install failed? I’ve seen in other posts that the vendor dependencies should be installed automatically which is why they’re not mentioned in the docs.