Are you both using the same version of Node.js? Support for future specification features works well in Node 6.x, which is the latest version, but as you discovered Node 4. which is the stable version needs use strict and has some limitations.
To my knowledge Ubuntu should not come with any already installed dependencies. The only thing for dependencies I can think of is global Node modules are being used. But it is quite strange that Moment would ever be a global Node module.
I would compare versions of Node being used by running: node -v -I think that is a good place to start.