thamara / time-to-leave

Log work hours and get notified when it's time to leave the office and start to live.
http://timetoleave.app
GNU General Public License v3.0
463 stars 271 forks source link

Fixing package-lock.json #933

Closed araujoarthur0 closed 1 year ago

araujoarthur0 commented 1 year ago

Currently npm ci from a fresh clone is failing because of a bad package-lock.json file.

 npm ci
npm ERR! code EUSAGE
npm ERR!
npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
npm ERR!
npm ERR! Invalid: lock file's @types/yargs@15.0.14 does not satisfy @types/yargs@15.0.15
npm ERR! Invalid: lock file's @types/yargs@15.0.14 does not satisfy @types/yargs@15.0.15
npm ERR! Invalid: lock file's @types/yargs@15.0.14 does not satisfy @types/yargs@15.0.15
npm ERR! Invalid: lock file's @types/yargs@15.0.14 does not satisfy @types/yargs@15.0.15
npm ERR! Invalid: lock file's @types/yargs@15.0.14 does not satisfy @types/yargs@15.0.15
npm ERR! Invalid: lock file's @types/yargs@15.0.14 does not satisfy @types/yargs@15.0.15
npm ERR! Invalid: lock file's @types/yargs@15.0.14 does not satisfy @types/yargs@15.0.15
npm ERR! Invalid: lock file's @types/yargs@15.0.14 does not satisfy @types/yargs@15.0.15
npm ERR! Missing: readdirp@3.6.0 from lock file
npm ERR!
npm ERR! Clean install a project
npm ERR!
npm ERR! Usage:
npm ERR! npm ci

I've remade the .lock file by calling install once. Tested with removing the node_modules folder, and being able to reinstall using npm ci now.