json-server : The term 'json-server' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. code example
Example: 'json-server' is not recognized as an internal or external command, operable program or batch file.
npm install -g json-server
npx json-server --watch db.json
//if installed locally in your project - use npx to run