json-server
json-server copied to clipboard
BUG: --routes where is written at "json-server": "1.0.0-beta.1"
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 i did downgrade from version ^0.17.0 in local project or global mode (-g). Recommend
Output command json-server --help
why route have been removed ?
"json-server": "1.0.0-beta.3" has the same issue. :(
Use a version ^0.17.0
Use a version ^0.17.0 Yeah!It Works!Thank you so much!