I encountered this challenge when working on nexmo sms app.
To fix the crashing, go to your `app.js`. If you have these lines of code. Its normally on the very first lines...
`import { Socket } from 'dgram';`
`const express = require('express');`
`const bodyParser = require('body-parser');`
`const ejs = require('ejs');`
`const Nexmo = require('nexmo');`
`const socketio = require('socket.io');`
Simply delete/remove the first line of code
`import { Socket } from 'dgram';`
Leaving these ones...
`const express = require('express');`
`const bodyParser = require('body-parser');`
`const ejs = require('ejs');`
`const Nexmo = require('nexmo');`
`const socketio = require('socket.io');`
and restart your application using "nodemon"
Did it work?