Skip to content

[NPX] SyntaxError: Unexpected token '?' #76

Open
@velhum

Description

Ao rodar npx serve,

A seguinte mensagem é exibida:

(node:2411) ExperimentalWarning: The ESM module loader is experimental.
file:///home/gitpod/.npm/_npx/2411/lib/node_modules/serve/build/main.js:130
      url.port = url.port ?? "3000";
                           ^

SyntaxError: Unexpected token '?'
    at Loader.moduleStrategy (internal/modules/esm/translators.js:83:18)
    at async link (internal/modules/esm/module_job.js:36:21)

Alguém tem alguma ideia da origem deste erro?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions