Skip to content

error 496 #1474

Closed
Closed
@Lalaok

Description

@Lalaok

node:internal/errors:496
ErrorCaptureStackTrace(err);
^

TypeError [ERR_PARSE_ARGS_UNKNOWN_OPTION]: Unknown option '--watch'. To specify a positional argument starting with a '-', place it at the end of the command after '--', as in '-- "--watch"
at new NodeError (node:internal/errors:405:5)
at checkOptionUsage (node:internal/util/parse_args/parse_args:98:11)
at node:internal/util/parse_args/parse_args:360:9
at Array.forEach ()
at parseArgs (node:internal/util/parse_args/parse_args:357:3)
at file:///C:/Users/Maruis/AppData/Roaming/npm/node_modules/json-server/lib/bin.js:13:33
at ModuleJob.run (node:internal/modules/esm/module_job:194:25) {
code: 'ERR_PARSE_ARGS_UNKNOWN_OPTION'
}

Node.js v18.18.0
i have this error when i run the json server like : json-server -- watch db.json or json-server db.json --watch .
i have like nothing in the database yet i only create the file , what should i do?

Metadata

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