skill-sample-nodejs-adventure-game icon indicating copy to clipboard operation
skill-sample-nodejs-adventure-game copied to clipboard

Cannot "ask deploy"... Saying no skill.json or root! Also git error!

Open TheCatster opened this issue 6 years ago • 18 comments

Just what it says... I cannot deploy ask.

I should back up and give some background. I could not git clone the given link because such a repo does "not exist". So, instead, I cloned the skill-sample-nodejs-adventure-game repo. I did the "ask init", and then deployed. I simply get this error, or this one: C:\Windows\System32\skill-sample-nodejs-adventure-game> ask deploy [Error]: Failed to deploy. Please ensure the current working directory is the root of your skill project OR [Error]: Can't find skill.json in current working directory I've used the ASK CLI before, with no issues. What's up this time? Any assistance would be amazing!

TheCatster avatar Apr 03 '18 01:04 TheCatster

what directory are you doing the deploy from? does C:\Windows\System32\skill-sample-nodejs-adventure-game actually have a skill.json in the folder?

DId you try and clone the whole cookbook? When I first tried I found I had a copy error once i fixed that it worked. I just tried it with this command and was able to clone the whole thing...

git clone https://github.com/alexa/alexa-cookbook

error404notfound avatar Apr 03 '18 04:04 error404notfound

I am deploying it from both C:\Windows\System32\skill-sample-nodejs-adventure-game and from C:\Windows\System32\skill-sample-nodejs-adventure-game\lambda\custom. I have tried ask init in both directories. C:\Windows\System32\skill-sample-nodejs-adventure-game does indeed have a skill.json, and I opened it, and it did have the code necessary for a skill. I did not try to clone the whole cookbook, as all I wanted was the adventure game sample. Should that bring better results? Thanks...

TheCatster avatar Apr 03 '18 12:04 TheCatster

Any updates?

TheCatster avatar Apr 05 '18 13:04 TheCatster

I have the exact same error after having the exact same git issue on the original file (alexa/skill-sample-gamebook/) on MacOS High Sierra.

I noticed a similar issue with the alexa/skill-sample-nodejs-audio-player project; Issue #69

I followed the thread with no luck but it might be helpful to the project maintainer as they resolved the issue.

escottalexander avatar Apr 06 '18 15:04 escottalexander

Would you happen to know where to go from there? I need a project to be done by the end of April using this, and am lost on where to go from here.

TheCatster avatar Apr 10 '18 15:04 TheCatster

any update? I got the same issue

[Error]: Failed to deploy. Please ensure current working directory is the root of your skill project.

Im using debian

falent avatar Apr 26 '18 08:04 falent

No, I haven't gotten any further. I do still need help with this though. Would be nice if Amazon kept up their support here.

TheCatster avatar Apr 26 '18 12:04 TheCatster

I'm investigating and will post an update when I find the root cause.

franklin-lobb avatar May 22 '18 20:05 franklin-lobb

The skill will now deploy from the command line using the 'ask deploy' command. Can you please try again and let me know if it resolved your issue?

franklin-lobb avatar May 23 '18 06:05 franklin-lobb

I discribed my solution here: https://stackoverflow.com/questions/50040138/alexa-ask-cli-how-to-add-a-custom-https-server/50040830?noredirect=1#comment87110040_50040830 Last answer. It works for me :)

falent avatar May 23 '18 06:05 falent

I'll try once I am available.

TheCatster avatar May 29 '18 13:05 TheCatster

No help. Still stuck.

TheCatster avatar Jun 20 '18 18:06 TheCatster

It still doesn't find the skill.json. I am very confused now, since it is clearly there.

TheCatster avatar Jun 25 '18 19:06 TheCatster

I have the same issues, did you figure out the problem? Thank you!

JofCla avatar Jul 25 '18 18:07 JofCla

the latest commit should work fine. The issue is .ask/config is missing before.

incisor avatar Aug 14 '18 04:08 incisor

So the issue that I ran into was not changing the directory once I had installed npm. You then have to go back to the root directory where the skill.json file is located (you can find the .ask, .config, etc. here -- if you're new to this, try typing in cd .. (do this two times) to get back to the root directory once you've installed npm). Then you will be able to deploy with the command ask deploy once you are in the root directory. Hope this helps and doesn't further confuse anyone!

daleyarborough avatar Aug 31 '18 17:08 daleyarborough

Thanks! Yeah, I'm not new, and originally the file wasn't there. However, this is great for future reference! Is there any way to pin this post so people can see it again in the future?

TheCatster avatar Sep 11 '18 16:09 TheCatster

So the issue that I ran into was not changing the directory once I had installed npm. You then have to go back to the root directory where the skill.json file is located (you can find the .ask, .config, etc. here -- if you're new to this, try typing in cd .. (do this two times) to get back to the root directory once you've installed npm). Then you will be able to deploy with the command ask deploy once you are in the root directory. Hope this helps and doesn't further confuse anyone!

This worked for me. Thanks

meneimoh avatar Feb 10 '20 15:02 meneimoh