我正在使用 node.js Nodemailer 模块并遇到以下错误;
[Error: Unsupported configuration, downgrade Nodemailer to v0.7.1 or see the migration guide https://github.com/andris9/Nodemailer#migration-guide]
我查看了我的 package.json 并意识到它是 "nodemailer": "^1.8.0",
版本。
如何降级到 v0.7.1 并防止稍后在运行 npm update
时自动升级?
最佳答案
如果你正好需要 v0.7.1,使用 "nodemailer": "0.7.1"
,删除 node_modules
下的 nodemailer
并运行 npm install
再次。
另一种方法是运行命令:
npm remove nodemailer
npm install nodemailer@0.7.1 --save
关于javascript - 如何将此 node.js 模块降级到特定版本并防止以后自动升级?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/33591036/