SyntaxError: no se puede usar la declaración de importación fuera de un nodo de módulo JS
// Note: "import" should generally be used for modules/package projects, otherwise use
// "require"
// In your NodeJS project's package.json add the following "type" field to allow use of "import":
{
"type": "module"
}
Anxious Alligator