node.js - vmc push Errno::ENOENT: No such file or directory -
i trying deploy illustration cloud foundry
https://github.com/andris9/nodemailer/blob/master/examples/example_smtp.js
here did:
npm install nodemailer
rename example_smtp.js
app.js
, edit fields right email credential tested node app.js
locally , works / email sent vmc push
, got below error uploading mytestmailer... failed upload failed. seek 1 time again 'vmc push'. errno::enoent: no such file or directory - c:/users/username/appdata/local/temp/. vmc_hocmailer_files/node_modules/nodemailer/node_modules/simplesmtp/node_modules /xoauth2/node_modules/request/node_modules/form-data/node_modules/combined-strea m/node_modules/delayed-stream/test/integration/test-delayed-http-upload.js more information, see ~/.vmc/crash
i search , found thread figure out in ~/.vmc/crash
how access ~/.vmc/crash folder on cloud foundry
but using windows cannot find crash file.
can help me troubleshoot issue? seem simple deployment.
you need create sure create package.json file specifies dependencies of application, in case should this;
{ "name": "node-mailer-example", "version": "0.0.1", "dependencies": { "nodemailer": "*" } }
with nil , app.js in folder, install dependencies application npm;
npm install
this should create new 'node_modules' folder dependencies included inside.
also, need alter first line of app.js file reads;
var nodemailer = require('nodemailer');
i did , deployed ok, got message in application log;
smtp configured sending mail service error occured invalid login - 535-5.7.1 please log in web browser , seek again. larn more @ 535 5.7.1 https://support.google.com/mail/bin/answer.py?answer=78754 hr1sm24898342qeb.3 - gsmtp
btw, when send mail service on mass through gmail, each e-mail has same content, gmail require log in via web interface before can continue.
node.js smtp npm cloudfoundry nodemailer
No comments:
Post a Comment