I want to be able to run spm doctor to detect missing binaries (yarn, npm, pnpm) and also to detect bad project config (package-lock.json and yarn.lock in the same project for example).
A spm doctor --fix should allow to fix fixable issues (remove unused lock file, remove node_modules and reinstall them with the correct package manager, etc..)
Checks to perform
Expected output
$ spm doctor
✔ Package manager: yarn (v4.1.0)
✔ Lock file: yarn.lock is consistent
✔ node_modules: present
✔ Node.js: v20.11.0 (satisfies >=18)
All checks passed!
I want to be able to run
spm doctorto detect missing binaries (yarn, npm, pnpm) and also to detect bad project config (package-lock.json and yarn.lock in the same project for example).A
spm doctor --fixshould allow to fix fixable issues (remove unused lock file, remove node_modules and reinstall them with the correct package manager, etc..)Checks to perform
package.json(no drift)node_modulesexists and is not corruptedenginesfield (if present)Expected output