yarn add json-server --dev code example Example: install json server with yarn npm install -g json-server