kentcdodds / testing-workshop

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

Issue installing/running on Windows 10 #39

Closed samiff closed 7 years ago

samiff commented 7 years ago

Problem description: Install process cmd results: https://gist.github.com/samiff/ea037fe173405ae3e864a2bd824dd579 Following along from this FEM video.

I'm able to run npm start dev eventually and the site loads up, but no API data loads because the database has been created but empty. I'm a new developer used to dealing with scripts from a package.json, so I'm unsure where to troubleshoot from here. Could the following be part of the problem?

generating and inserting data with `cd api && ./node_modules/.bin/babel-node scripts/generate`
'.' is not recognized as an internal or external command,
operable program or batch file.
kentcdodds commented 7 years ago

Hi @samiff!

If you could run all the scripts in Bash for Windows that would be best. If you can't do that for some reason, then try running this instead:

cd api && node_modules/.bin/babel-node scripts/generate

I think that should work...

Good luck!

samiff commented 7 years ago

Thanks Kent, got the database populated now by manually running those steps that failed with the ". is not recognized..." manually.

kentcdodds commented 7 years ago

Wonderful! I'm glad you got it to work!