I'm trying to make an Alexa skill which uses a Node.JS API using a module, usually installed via npm. However, I can't upload the node modules as there is no upload button. I can't just simply use npm install as there is no console. How would I do this?
-
Does [this](https://stackoverflow.com/a/34439125/10980926) help? – Pentium1080Ti Jan 28 '21 at 19:49
-
See, this would be super helpful except I'm just straight up using https://developer.amazon.com/en-US/alexa/. I have no idea how to use AWS or the sort. – Robot Jan 28 '21 at 20:39
2 Answers
In the follow-up questions, you say you're using straight developer.amazon.com and not messing with AWS.
When you're using the Alexa Hosted feature and the code editor in the Alexa developer console, you'll edit your package.json in the code editor to make the module a dependency and the package should get loaded automatically when you save and deploy your code.

- 1,895
- 15
- 20
You can create a serverless aws function in your aws account. please follow the below link https://docs.aws.amazon.com/lambda/latest/dg/lambda-nodejs.html
When your Lambda function is created, you will generate an ARN URL: You need to add an ARN url in the Alexa Developer Console under the endpoint section.
When your Alexa Developer Console & AWS Lambda function is connected, you need to create a zip for your project folder and upload a zip in your lambda function. Once the zip is uploaded, you will be able to do a skill test from Alexa Developer Console.

- 1,647
- 1
- 10
- 11