You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I can't see this issue documented anywhere else and have tried different versions of json-server
Running on Apple M1 Pro
Node: 20.9.0
json-server: 1.0.0-alpha.23
Have tried running from npx, json-server as global as well as local and both.
running the following json-server --watch ./data/db.json --port 8000 --routes ./data/routes.json results in the error below
I can't see this issue documented anywhere else and have tried different versions of json-server
Running on Apple M1 Pro
Node: 20.9.0
json-server: 1.0.0-alpha.23
Have tried running from npx, json-server as global as well as local and both.
running the following
json-server --watch ./data/db.json --port 8000 --routes ./data/routes.json
results in the error below`npx json-server --watch ./data/db.json --port 8000 --routes ./data/routes.json
Unknown option '--routes'
Usage: json-server [options]
Options:
Static files directory (multiple allowed)-p, --port Port (default: 3000)
-h, --host Host (default: localhost)
-s, --static
--help Show this message
--version Show version number`
The documentation says
--routes
is an option but the package in npm does not contain it?The text was updated successfully, but these errors were encountered: