json-server icon indicating copy to clipboard operation
json-server copied to clipboard

BUG: --routes where is written at "json-server": "1.0.0-beta.1"

Open whaleluo opened this issue 1 year ago • 5 comments

 npx json-server  .\db.json5 --routes .\routes.json
Unknown option '--routes'
Usage: json-server [options] <file>

Options:
  -p, --port <port>  Port (default: 3000)
  -h, --host <host>  Host (default: localhost)
  -s, --static <dir> Static files directory (multiple allowed)
  --help             Show this message
  --version          Show version number

whaleluo avatar Aug 19 '24 08:08 whaleluo

@whaleluo i did downgrade from version ^0.17.0 in local project or global mode (-g). Recommend

Output command json-server --help image

gleissonneves avatar Oct 06 '24 07:10 gleissonneves

why route have been removed ?

mbagiella avatar Feb 19 '25 19:02 mbagiella

"json-server": "1.0.0-beta.3" has the same issue. :(

AlexandrLezh avatar Feb 26 '25 06:02 AlexandrLezh

Use a version ^0.17.0

gleissonneves avatar May 02 '25 05:05 gleissonneves

Use a version ^0.17.0 Yeah!It Works!Thank you so much!

Aixian69 avatar Aug 20 '25 03:08 Aixian69