fix(cli): detect existence before readJSON
Merge pull request #1103 from spmjs/fix/record-error

fix(cli): detect existence before readJSON