json-server is not recognized as an internal or external command

First, you need to check json-server installed globally or not. or you can install it globally by

npm install -g json-server

If you install it locally in your project, use npx to run it

npx json-server --watch db.json

Checkout difference between npx and npm here: https://stackoverflow.com/a/52018825/11285186

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)