leancloud 部署Valine-Admin失败的解决办法

错误

通过官方文档在Leancloud上部署Valine-admin时,遇到了异常错误(错误阶段: 构建)。

1
2
3
build failed: No response from server
build failed: npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated superagent@3.8.3: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net npm WARN deprecated formidable@1
build failed: npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated superagent@3.8.3: Please upgrade to v9.0.0+ as we have fixed a public vulnerability with formidable dependency. Note that v9.0.0+ requires Node.js v14.18.0+. See https://github.com/ladjs/superagent/pull/1800 for insight. This project is supported and maintained by the team at Forward Email @ https://forwardemail.net npm WARN deprecated formidable@1

根据Github上的Pull requests:

修复无法部署的错误
#3 opened on Apr 17, 2020 by jtchen2k

jtchen2kcommentedon Apr 17, 2020
https://user-images.githubusercontent.com/11037722/79484865-e8cc7180-8046-11ea-9664-dc98281e3971.png
LeanCloud 已经不支持 node.js 6.* 的部署。
更新了 package.json 中的 node.js 版本号。

解决方法

jtchen2k已经提供了更新 package.json 中的 node.js 版本号的版本,直接通过它的仓进行部署即可。

jtchen2k/Valine-Admin: 一个 Valine 的拓展应用,用来增强 Valine 的邮件通知。