npm js org code example Example 1: npm npm install -g json-server Example 2: npm json-server --watch db.json