This can be avoided by adding "npm rebuild" to your deployment.
It does feel like a code smell, but it'd make deployment easier.
Our frontend is Javascript, wherein there's no worry about native modules.
Our backend is Python running Pypy, so there's no native code there either.
This can be avoided by adding "npm rebuild" to your deployment.