我正在使用node.js Nodemailer模块并遇到以下错误;
[错误:不支持的配置,将 Nodemailer 降级到 v0.7.1 或
请参阅迁移指南https://github.com/andris9/Nodemailer#migration-guide] https://github.com/andris9/Nodemailer#migration-guide%5D
我查看了我的 package.json 并意识到它是"nodemailer": "^1.8.0",
版本。
如何降级到 v0.7.1 并防止稍后运行时自动升级npm update
?
如果您恰好需要 v0.7.1,请使用"nodemailer": "0.7.1"
, 删除nodemailer
under node_modules
并运行npm install
again.
另一种方法是运行命令:
npm remove nodemailer
npm install [email protected] /cdn-cgi/l/email-protection --save
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)