Some exercises don’t contain Prettier on package.json, for example, the High Score Board concept exercise, its package.json looks like bellow:
After executing the commands:
corepack pnpm i && node --run format
The output is:
ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL Command "prettier" not found
The same occurs when running:
corepack pnpm format
Output:
ERR_PNPM_RECURSIVE_EXEC_FIRST_FAIL Command "prettier" not found
ELIFECYCLE Command failed with exit code 254.
To solve this problem, I added the prettier package to package.json:
corepack pnpm i -D prettier
Package.json after the command:
But others exercises are with the same missing depency and make this same steps in all this exercises is not so good. The solution is create a pull request updating all package.json from exercises with the missing dependency and add prettier.
Have a good day for all of you.