Reputation: 5585
I have installed json-server using npm in Windows. Now when I try to run the json-server command from the Windows command prompt, I get this error: json-server is not recognized as an internal or external command, operable program or batch file.
Does anybody have any info on what is required to be changed here?
Upvotes: 2
Views: 13824
Reputation: 1
npm install -g json-server
json-server .\db.json
After this your server should be running on http://localhost:3000/posts
Upvotes: 0