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');
};
npm init
npm i nodemailer
index.js
for your initial tests, later you can move it around.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.