Error message when testing the Window system challenge

When I do npm run test I see this output:

/windowing-system.spec.js
  ā— Test suite failed to run

    Cannot find module '@exercism/babel-preset-javascript'
    Require stack:
    - C:\Users\rwobb\AppData\Roaming\npm\node_modules\jest\node_modules\@babel\core\lib\config\files\plugins.js
    - C:\Users\rwobb\AppData\Roaming\npm\node_modules\jest\node_modules\@babel\core\lib\config\files\index.js
    - C:\Users\rwobb\AppData\Roaming\npm\node_modules\jest\node_modules\@babel\core\lib\index.js
    - C:\Users\rwobb\AppData\Roaming\npm\node_modules\jest\node_modules\jest-snapshot\build\InlineSnapshots.js
    - C:\Users\rwobb\AppData\Roaming\npm\node_modules\jest\node_modules\jest-snapshot\build\State.js
    - C:\Users\rwobb\AppData\Roaming\npm\node_modules\jest\node_modules\jest-snapshot\build\index.js
    - C:\Users\rwobb\AppData\Roaming\npm\node_modules\jest\node_modules\jest-runtime\build\index.js
    - C:\Users\rwobb\AppData\Roaming\npm\node_modules\jest\node_modules\@jest\core\build\cli\index.js
    - C:\Users\rwobb\AppData\Roaming\npm\node_modules\jest\node_modules\@jest\core\build\index.js
    - C:\Users\rwobb\AppData\Roaming\npm\node_modules\jest\node_modules\jest-cli\build\run.js
    - C:\Users\rwobb\AppData\Roaming\npm\node_modules\jest\node_modules\jest-cli\build\index.js
    - C:\Users\rwobb\AppData\Roaming\npm\node_modules\jest\node_modules\jest-cli\bin\jest.js
    - C:\Users\rwobb\AppData\Roaming\npm\node_modules\jest\bin\jest.js

After downloading the exercise, have you run npm install before running npm run test

Thanks, that was the problem
I did not run it.

Problem solved

1 Like