• If I remember correctly, Node-RED actually needs an old version of Node at the moment.. well, not older as such, but I think it only runs on Node 6.x (the long-term stable release), rather than the state-of-the-art Node 7.x. As a result, it doesn't support Promises and a host of other ES6 features.

    One option is to use nave, which lets you have several versions of Node installed and switch between them as needed. That way, you can have Node-RED and EspruinoHub running in Node 6.x, and use another version for other scripts. Or, as you say, just reinstall with Node 6.x: most code should work with it.

    My version of EspruinoHub.service is substantially different as I don't use standard Node either: I install the base server version of Raspbian and do a custom install of Node into its own user.

About

Avatar for tom.gidden @tom.gidden started