ivanseidel / IAMDinosaur

🦄 An Artificial Inteligence to teach Google's Dinosaur to jump cactus
MIT License
2.8k stars 533 forks source link

Confused by Install Steps #27

Open anb43 opened 7 years ago

anb43 commented 7 years ago

I installed Node.js, and where I go from there is maddening. What does 'run 'npm install' within this folder' mean? What does 'run 'node index' within this folder' mean?

I had assumed you'd just type "npm install/node index (folder location)", but 'npm install' tells me "npm should be run outside of the node repl, in your normal shell"

I'm stuck and this is one of the most ingenious things I've come across, and I'd like to see more. If anyone is more experienced with this stuff I'd greatly appreciate the help.

mishka1980 commented 7 years ago

You should cd into the folder, and then run npm install/node index when inside the folder.

randyfortier commented 7 years ago

First, you'll have to install Node.js: https://nodejs.org/en/

anb43 commented 7 years ago

Well, randy, I already have Node. Mishka, I tried to cd in, but it seems it won't work either.

kelvinkellner commented 7 years ago

What @mishka1980 said to do worked perfectly fine for me.

mishka1980 commented 7 years ago

@anb43 What is your error message?

anb43 commented 7 years ago

http://prntscr.com/cw224r Reference Error; Syntax Error, am I not doing this correctly?

mishka1980 commented 7 years ago

You have to run this in your terminal, not in Node.js.

anb43 commented 7 years ago

Which terminal? The CLI, cmd?

anb43 commented 7 years ago

I did it in cmd, I tried the other day and the problem still persists with just giving me errors. http://prntscr.com/cw26yw

tiagosomda commented 7 years ago

@anb43 it looks like you have some missing tools that robotjs requires. I had similar errors while running this on windows. This helped me fix/install those missing tools: https://www.npmjs.com/package/windows-build-tools

run the following in your cmd window (make sure it is running as administrator) npm install --global --production windows-build-tools

Betanin commented 7 years ago

Hi @tiagosomda, your tip was very usefull. I suggest you to add this on the readme, it can help other people.

Thanks