Sunday, May 12, 2019

How to install JSON Server

JSON Installation:

download json-server-master package
Extract, open package.json file and edit the first line as follows:
 "name": "json-server" -->  "name": "json-server-test"

apply command

 npm install json-server --save-dev

Got error: Linux 4.15.0-45-generic etc

Solution: upgrade to the latest version of npm using:
npm install -g npm@latest