Ugh. If you install punycode via npm and then require it, you're probably not getting what you might expect. npm run build node dist/main.js