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

An Alexa Skill Sample showing how to build a quiz game skill.
Other
265 stars 289 forks source link

"ask deploy" source directory is invalid #21

Closed knouse1344 closed 5 years ago

knouse1344 commented 6 years ago

When attempting to deploy this skill, most of the deployment completes as expected:

ask deploy
-------------------- Update Skill Project --------------------
Skill Id: amzn1.ask.skill.e04ea7be-cc76-4606-9592-a6927b78c72e
Skill deployment finished.
Model deployment finished.
Source directory is invalid, cannot install node_module for the lambda function(s)

That final one is causing issues. On my local machine, in skill.json there is line 46:

"sourceDir": "lambda/src"

changing this to:

"sourceDir": "lambda"

now effectively succeeds in deployment.

ask deploy
-------------------- Update Skill Project --------------------
Skill Id: amzn1.ask.skill.e04ea7be-cc76-4606-9592-a6927b78c72e
Skill deployment finished.
Model deployment finished.
Lambda deployment finished.
richare commented 6 years ago

Would be better to change "sourceDir": "lambda/src" to "lambda/custom".

knouse1344 commented 6 years ago

yes, this is the right answer. I've updated on my end and is working properly.

franklin-lobb commented 5 years ago

looks like this was sorted out previously, but not closed. closing...