mostly-adequate-guide icon indicating copy to clipboard operation
mostly-adequate-guide copied to clipboard

Instructions for running Exercises are incorrect

Open AndreyNikiforov opened this issue 2 years ago • 2 comments

I am following instructions for running exercises locally and npm install fails with the following error:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: @mostly-adequate/[email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/eslint
npm ERR!   dev eslint@"^5.9.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^4.9.0" from [email protected]
npm ERR! node_modules/eslint-config-airbnb
npm ERR!   dev eslint-config-airbnb@"^16.1.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! 
npm ERR! For a full report see:
npm ERR! /home/node/.npm/_logs/2023-02-18T19_36_11_612Z-eresolve-report.txt

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/node/.npm/_logs/2023-02-18T19_36_11_612Z-debug-0.log

Steps to repro:

  • clone repo
  • open vscode with that folder
  • use "Reopen in Container" and choose "Node.js & Typescipt" with v18 from the list
  • follow instructions from the book

Expected behavior:

  • show results of the test run (npm run ch04)

Actual behavior:

  • fails at npm install with error above

AndreyNikiforov avatar Feb 18 '23 19:02 AndreyNikiforov

As a mitigation, upgrade/use "eslint-config-airbnb": "^17.0.0", in exercises/package.json/devDependencies

AndreyNikiforov avatar Feb 18 '23 19:02 AndreyNikiforov

Thanks @AndreyNikiforov I faced the same issue but with your suggested it fixed it.

aurelienlair avatar Mar 18 '23 13:03 aurelienlair