kentcdodds / testing-workshop

A workshop for learning how to test JavaScript applications
http://git.io/testing-workshop
1.36k stars 708 forks source link

error installing dependencies #104

Closed torjantai closed 5 years ago

torjantai commented 5 years ago
npm run setup --silent
🎉  Congrats! Your system is setup properly
You should be good to install and run things.
📦  Installing dependencies via npm install
🔑  starting install in /Users/mimas/fem/testing-workshop-1
💀  error installing dependencies in "/Users/mimas/fem/testing-workshop-1"
[test:run] sh: jest: command not found
[test:run] npm run test:run --silent exited with code 1
[lint] sh: eslint: command not found
[lint] npm run lint --silent exited with code 1
[test:e2e] [server] sh: babel: command not found
[test:e2e] [client] sh: react-scripts: command not found
[test:e2e] [server] npm run build:server --silent exited with code 1
[test:e2e] [client] npm run build:client --silent exited with code 1
[test:e2e] npm run test:e2e:run --silent exited with code 1

Environment info:

mimas@Anttis-MBP:~/fem/testing-workshop-1$ node -v
v10.15.3
mimas@Anttis-MBP:~/fem/testing-workshop-1$ npm -v
6.4.1
mimas@Anttis-MBP:~/fem/testing-workshop-1$ git --version
git version 2.19.1

Tried with node v8.16.0 also but the result was no different. Same with master and fem-2018 branches.

Also, could you, please, clarify what branch I should use when I'm following https://frontendmasters.com/courses/testing-practices-principles/

torjantai commented 5 years ago

Well, npm run setup without --silet flag gave me some errors that I was able to fix by clearing npm cache. Still got some errors but probably can live with them.