install package.json using yarn code example
Example 1: yarn frozen lockfile
yarn install --frozen-lockfile
Example 2: install dev dependency yarn
yarn add nameOfPackage --dev
Example 3: install json server with yarn
npm install -g json-server