At the risk of sounding like Captain Obvious, I think whatever throws that error can’t find the module where it’s installed. Maybe it’s not looking in the right place. Maybe your PATH doesn’t include something it should have.

writen by Kirill Rogovoy
The problem is that I can not degub any of that because it is a serverless function…

writen by Tiago Ferreira
is that package installed as a dev dependency or dependency?

writen by Luca Restagno (ikoichi on Twitter)
Ah, brilliant point Luca! DO’s CI might only be running a ‘prod-only’ npm install

writen by Kirill Rogovoy
I am working with python so I am not even sure if it is possible to install packages just as dev. Probably it is but I was not doing that

writen by Tiago Ferreira