Reputation: 3
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?
Upvotes: 0
Views: 1425
Reputation: 1957
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.
Upvotes: 5
Reputation: 1751
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.
Upvotes: 1