alexa-samples / skill-sample-nodejs-adventure-game

This tool provides an easy to use front-end that allows developers to instantly deploy code for your story, or use the generated code as a starting point for more complex projects.
Apache License 2.0
510 stars 218 forks source link

Windows Install #24

Closed ferguson4848 closed 7 years ago

ferguson4848 commented 7 years ago

I was wondering if anyone could lead me to any instructions on how to get this running on a Windows 10 machine?

Thanks so much.

ginareams commented 7 years ago

Hey @ferguson4848 , which step are you currently at? It was creating the credentials file in the aws directory, right?

Do you have Node.js installed? Or Git? From either Git CMD, Node.js, or just the Command Prompt try entering: "mkdir .aws" (without the quotations).

Once you've done that, try installing the AWS CLI (http://docs.aws.amazon.com/cli/latest/userguide/installing.html#cli-test-the-setup). Test it by following the "Test the AWS CLI Installtion" step.

Once you've got that working, then you can configure your credentials file. (http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-started.html#cli-quick-configuration) Be sure to specify the correct region! The example uses us-west-2, but Alexa skills only run on us-east-1 in the US. (And something else in Europe that I can't recall.) You're going to need to have your AWS Access Key and Secret Access Key handy when doing this. (I need to look up the step by step on generating those, but it's in your AWS account). -- This whole page was really helpful to me in setting up those files.

ginareams commented 7 years ago

Hopefully that gives you something to work with for now! This is helpful for me to go back and trace my steps on how I got mine working. I'm currently in the process of taking this (and other information) in an attempt to set a friend up, too. :)

ferguson4848 commented 7 years ago

Thank you for the info.

I was able to make the aws folder and install ASW CLI and seems to Test fine.

Is the AWS ID and Key from IAM Roles, DynamoDB or somewhere else entirely?

ferguson4848 commented 7 years ago

Also, I was able to install git and download the files, but what directory/program do I run the command npm install?

AlBakerKY commented 7 years ago

Just inside the 'interactive-adventure-game-tool' dir.

ferguson4848 commented 7 years ago

That is what I figured, but when I go to the directory I get this first: GitHub\interactive-adventure-game-tool [master ≡]>

Then I try npm install, which results in:

npm : The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1

  • npm install
  • 
    + CategoryInfo          : ObjectNotFound: (npm:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
AlBakerKY commented 7 years ago

At first glance, it doesn't look like you have npm installed, which comes with Node.

ferguson4848 commented 7 years ago

Okay, I installed Node 6.9.4 LTS and appears to have installed fine. I can open node.js and get a command prompt with a ">", but the npm command still gets a not recognized error.

Do I need to enable npm or something other than just the standard node install?

ferguson4848 commented 7 years ago

Bit of an update, I ran the npm install again and alot of stuff happened. After a very long string of commands I got ok Install complete. interactive-adventure-game-tool@1.0.0 C:\Users\ and then a series of +-- items. Finally that all ended and I was back at the prompt: ...\Documents\GitHub\interactive-adventure-game-tool [master ≡ +1 ~0 -0 !]>

I tried the npm launch command, but got this result: sage: npm

where is one of: access, adduser, bin, bugs, c, cache, completion, config, ddp, dedupe, deprecate, dist-tag, docs, edit, explore, get, help, help-search, i, init, install, install-test, it, link, list, ln, login, logout, ls, outdated, owner, pack, ping, prefix, prune, publish, rb, rebuild, repo, restart, root, run, run-script, s, se, search, set, shrinkwrap, star, stars, start, stop, t, tag, team, test, tst, un, uninstall, unpublish, unstar, up, update, v, version, view, whoami

npm -h quick help on npm -l display full usage info npm help search for help on npm help npm involved overview

Specify configs in the ini-formatted file: C:\Users\mferguson.npmrc or on the command line via: npm --key value Config info can be viewed via: npm help config

npm@3.10.10 C:\Program Files\nodejs\node_modules\npm

ginareams commented 7 years ago

What commend did you use for "npm launch"? It should be "npm start". Try that? @ferguson4848 Then you should see the following below as the game launches in a web browser. (Udon is my username.)

image

Then it says Access URLS: and some additional information, but I omitted that since it shouldn't matter~

ferguson4848 commented 7 years ago

That did it! It opened in a web browser. Thank you so much.

I really appreciate you taking the time to help me through this.

wuxiaobo commented 7 years ago

‘’“16 verbose cwd C:\Users\wuxb3.aws\interactive-adventure-game-tool 17 error Windows_NT 10.0.14393 18 error argv "C:\Program Files\nodejs\node.exe" "c:\program files\nodejs\node_modules\npm\bin\npm-cli.js" "start" 19 error node v6.10.0 20 error npm v3.10.10 21 error code ELIFECYCLE 22 error interactive-adventure-game-tool@1.0.0 start: node node_modules/gulp/bin/gulp.js 22 error Exit status 1 23 error Failed at the interactive-adventure-game-tool@1.0.0 start script 'node node_modules/gulp/bin/gulp.js'. 23 error Make sure you have the latest version of node.js and npm installed. 23 error If you do, this is most likely a problem with the interactive-adventure-game-tool package, 23 error not with npm itself. 23 error Tell the author that this fails on your system: 23 error node node_modules/gulp/bin/gulp.js 23 error You can get information on how to open an issue for this project with: 23 error npm bugs interactive-adventure-game-tool 23 error Or if that isn't available, you can get their info via: 23 error npm owner ls interactive-adventure-game-tool 23 error There is likely additional logging output above. 24 verbose exit [ 1, true ] ”

help@AlBakerKY

wuxiaobo commented 7 years ago

What should I do, where I went wrong @AlBakerKY

natemunk commented 6 years ago

@ginareams I have gotten everything to start in windows, but the save and upload functions do not work. I have the credentials set up in the correct location. Did you experience any issues with it?

ginareams commented 6 years ago

@natemunk I did run into issues uploading, but not saving. Before I get to uploading, when you save, are you seeing errors in the command line when you're saving? If so, it's quite possibly an issue with your credentials. Does this look familiar? https://github.com/alexa/interactive-adventure-game-tool/issues/37

This page can help you get those set up: http://docs.aws.amazon.com/cli/latest/userguide/cli-config-files.html.

natemunk commented 6 years ago

I am not getting anything when I try and save or publish. Just is not doing anything. I am considering creating a VM with Ubuntu and trying to run from there, been pulling my hair out all night trying to do it with windows.

On Mon, Jul 17, 2017 at 10:14 PM, Gina notifications@github.com wrote:

@natemunk https://github.com/natemunk I did run into issues uploading, but not saving. Before I get to uploading, when you save, are you seeing errors in the command line when you're saving? If so, it's quite possibly an issue with your credentials. Does this look familiar? #37 https://github.com/alexa/interactive-adventure-game-tool/issues/37

This page can help you get those set up: http://docs.aws.amazon.com/ cli/latest/userguide/cli-config-files.html.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alexa/interactive-adventure-game-tool/issues/24#issuecomment-315953343, or mute the thread https://github.com/notifications/unsubscribe-auth/AOW0sBp-m0_g44K4QvTRPYAvB3HdQra-ks5sPDEigaJpZM4LrRb6 .

-- NATE MUNK 540.359.0732 Nate Nate@purascents.com.lee.munk@gmail.com lee.munk@gmail.com

ginareams commented 6 years ago

@natemunk Hmm. Ok. Give me a few minutes. I definitely did run into a similar issue, I solved it with some sort of manual upload process at the time, but let me see if I can find how I did that. -- I meant to eventually get around to a long term fix for uploading through the button, but haven't been in the tool for a while.

natemunk commented 6 years ago

I really appreciate it, I am fine with doing a manual upload if I can get the files to save and not publish.

On Mon, Jul 17, 2017 at 10:21 PM, Gina notifications@github.com wrote:

@natemunk https://github.com/natemunk Hmm. Ok. Give me a few minutes. I definitely did run into a similar issue, I solved it with some sort of manual upload process at the time, but let me see if I can find how I did that. -- I meant to eventually get around to a long term fix for uploading through the button, but haven't been in the tool for a while.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alexa/interactive-adventure-game-tool/issues/24#issuecomment-315954122, or mute the thread https://github.com/notifications/unsubscribe-auth/AOW0sB5K8cbADxzvr7l6q0gWHDtK05Bcks5sPDLNgaJpZM4LrRb6 .

-- NATE MUNK 540.359.0732 Nate Nate@purascents.com.lee.munk@gmail.com lee.munk@gmail.com

ginareams commented 6 years ago

@natemunk So it's been a long time and I've apparently messed with something that's keeping me from running the tool on my machine. So unfortunately I can't write you a detailed walkthrough, but I found my solution from this thread: https://github.com/alexa/interactive-adventure-game-tool/issues/3

It's likely you are actually saving changes, but it's not actually being zipped and uploaded. I manually zipped the files in the skills folder and uploaded it to lambda. There are several comments discussing that process in that thread above. I really hope that helps!

ginareams commented 6 years ago

@natemunk It's a bit late for me and I'm heading to bed, but if you don't end up solving it I'll see if I can get mine running again and figure out those specifics.

natemunk commented 6 years ago

Thank you Gina! I will go through it and let you know if I can get it working properly!

On Mon, Jul 17, 2017 at 10:34 PM, Gina notifications@github.com wrote:

@natemunk https://github.com/natemunk It's a bit late for me and I'm heading to bed, but if you don't end up solving it I'll see if I can get mine running again and figure out those specifics.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alexa/interactive-adventure-game-tool/issues/24#issuecomment-315955584, or mute the thread https://github.com/notifications/unsubscribe-auth/AOW0sGO62_rGiTqefjlBF0LJE-0UpgRsks5sPDXOgaJpZM4LrRb6 .

-- NATE MUNK 540.359.0732 Nate Nate@purascents.com.lee.munk@gmail.com lee.munk@gmail.com

natemunk commented 6 years ago

Looking through my files it appears as though nothing is saving. The utterances and intent files are both still at the original values. I think I am going to get to bed now too and take another crack in the morning.

On Mon, Jul 17, 2017 at 10:39 PM, Nate Munk nate.lee.munk@gmail.com wrote:

Thank you Gina! I will go through it and let you know if I can get it working properly!

On Mon, Jul 17, 2017 at 10:34 PM, Gina notifications@github.com wrote:

@natemunk https://github.com/natemunk It's a bit late for me and I'm heading to bed, but if you don't end up solving it I'll see if I can get mine running again and figure out those specifics.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alexa/interactive-adventure-game-tool/issues/24#issuecomment-315955584, or mute the thread https://github.com/notifications/unsubscribe-auth/AOW0sGO62_rGiTqefjlBF0LJE-0UpgRsks5sPDXOgaJpZM4LrRb6 .

-- NATE MUNK 540.359.0732 <(540)%20359-0732> Nate Nate@purascents.com.lee.munk@gmail.com lee.munk@gmail.com

-- NATE MUNK 540.359.0732 Nate Nate@purascents.com.lee.munk@gmail.com lee.munk@gmail.com

HarounAns commented 6 years ago

Hi, sorry to bring up an old problem, but I got the credentials working correctly, when I run npm install it goes through but I get this error:

**C:\Users\hansa\interactive-adventure-game-tool> npm install

node-sass@3.13.1 install C:\Users\hansa\interactive-adventure-game-tool\node_modules\node-sass node scripts/install.js

Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-57_binding.node Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-57_binding.node":

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location try setting a proxy via HTTP_PROXY, e.g.

  export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

  npm config set proxy http://example.com:8080

node-sass@3.13.1 postinstall C:\Users\hansa\interactive-adventure-game-tool\node_modules\node-sass node scripts/build.js** can anyone help me with this because I am unable to launch it

I'm not sure if you guys downloaded some proxy because it seems like no one else is having this problem.

ginareams commented 6 years ago

@natemunk Did you ever end up figuring it out?

natemunk commented 6 years ago

Yeah I ended up using an old Mac instead haha. You can check out my skill though: Escape Jurassic Island.

It is a goofy game, but fun :)

On Wed, Aug 9, 2017 at 11:20 PM, Gina notifications@github.com wrote:

@natemunk https://github.com/natemunk Did you ever end up figuring it out?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alexa/interactive-adventure-game-tool/issues/24#issuecomment-321453477, or mute the thread https://github.com/notifications/unsubscribe-auth/AOW0sPM7E53WhnHB_FRTznClJdOKnrukks5sWpMMgaJpZM4LrRb6 .

-- NATE MUNK 540.359.0732 Nate Nate@purascents.com.lee.munk@gmail.com lee.munk@gmail.com

gina-n3twork commented 6 years ago

@natemunk Sorry the windows install didn't end up working out for you! I'm not even sure how my install just stopped working... Haven't gone back to revisit it, but now I have a Mac as well. :) So I may never try to get it working on Windows again.

Will check it out! Glad you got it working in some form at the end. :)

natemunk commented 6 years ago

Yeah, I appreciate your help! I may try and get it working on Windows down the road, my PC is a much better machine. If I get it working I will post what I did on here so it will hopefully help others out.

On Mon, Aug 14, 2017 at 8:30 PM, gina-n3twork notifications@github.com wrote:

@natemunk https://github.com/natemunk Sorry the windows install didn't end up working out for you! I'm not even sure how my install just stopped working... Haven't gone back to revisit it, but now I have a Mac as well. :) So I may never try to get it working on Windows again.

Will check it out! Glad you got it working in some form at the end. :)

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/alexa/interactive-adventure-game-tool/issues/24#issuecomment-322360891, or mute the thread https://github.com/notifications/unsubscribe-auth/AOW0sHsEkz9YuNxqK7ZBLd9tCf3D10mPks5sYQLbgaJpZM4LrRb6 .

-- NATE MUNK 540.359.0732 Nate Nate@purascents.com.lee.munk@gmail.com lee.munk@gmail.com