As it turns out, npm does an "optimisation" by instead of doing a simple rename(), it link()s the source file to its destination, and unlink()s the source file. Reverse that if process.platform is 'android'.