alexa-samples/skill-sample-nodejs-audio-player

please help me zip the project from the CMD...

Closed this issue · 12 comments

I'm a total github newb. I am having trouble zipping the project. I follow all of your command instruction but when I get to "zip -r ../audio-player.zip *" I am returned 'zip' in not recognized as an internal or external command, operable program or batch file. I have tried every single way I can think of. I have everything else set up perfect, I have built Alexa skill before, but can't seem to zip the file correctly from the command prompt and get the skill to work. Please help, thanks in advance. Thanks for posting!

been trying all day, just can't figure out what I'm doing wrong :/

Do you have node-lambda installed? I use its package function to create my .zip files and it works great.

https://www.npmjs.com/package/node-lambda#package

Sorry - let me make sure I understand what you've done.

You have the skill-sample-nodejs-audio-player files from GitHub on your computer and you're trying to zip them up into an audio-player.zip file (which could then be imported into an AWS Lambda function). Is that correct?

Are you using a Mac or Windows computer?

I don't believe Windows has a zip command. You can try to go the node-lambda route, or you can create a .zip file from Windows Explorer by selecting all the files you want to include in the .zip file, right-clicking on one of the selected files, and selecting Send To > `Compressed (zipped) folder'.

@drblankenstein did you ever get this figured out (what to zip)? Having similar issue

I had the same issue. First, Windows doesn't have zip command (built-in) and unfortunately most AWS labs and instructions assume we all are using MAC. I resolved it by manually zipping (Windows -> Compress Zip Folder as mentioned above) all the content in js folder.

If you zip the JS folder itself, it won't work.

You have to go inside js folder, select all the files in js folder, rightclick and "send to compress zip folder". Upload the zip file.

Thanks @thynn11 for helping!