Reputation: 117
I have this error message: "errorMessage": "Cannot find module 'nodemailer'"
I Googled, and it says install nodemailer. Can someone tell me where exactly do I install this module? I am new to Lambda.
My Lambda function is below :
var aws = require("aws-sdk");
var nodemailer = require("nodemailer");
var ses = new aws.SES();
var s3 = new aws.S3();
exports.handler = (event, context, callback) => {
callback(null, 'Hello from Lambda');
};
Upvotes: 0
Views: 1530
Reputation: 2347
npm init
npm i nodemailer
index.js
for your initial tests, later you can move it around.Upvotes: 2