E0285 Package uses a Node module
Words in italics are filled in when the compiler reports it, such as the element's name or the list of known ones.
Why
duolith scan found require() or import of one of Node's built-in modules, such as fs, child_process or node:path. Apps run on the web, iOS and Android, and none of them has Node's modules, so the package cannot run where the app runs. Modules that also exist as npm packages of the same name, such as events or buffer, count only when no such package is installed.
How to fix it
Use a package written for browsers and apps instead, or move this work to your server and call it from the app.
In a terminal
duolith explain E0285