you can see this. I guess it is similar, check my last comment there.
I would guess there is a miss match between your client version, appium version (notice that appium 2 acts differently, if you use it) and you npm or node version.
if you use appium 2 then, your npm version should be above 6 (if I remember correctly). also update node version.