Netlify部署node.js + React

时间:2019-10-23 15:03:11

标签: javascript node.js reactjs netlify

嗨!

netlify从github开始部署我的项目时,Netlify会写“生产部署失败”或其他内容。

日志:

5:49:44 PM: %
5:51:23 PM: curl: (56) GnuTLS recv error (-110): The TLS connection
5:51:23 PM: was non-properly terminated.
5:51:23 PM: Binary download from https://nodejs.org/dist/v10.17.0/node-v10.17.0.tar.xz failed, trying source.
5:51:23 PM: grep: /opt/buildhome/.nvm/.cache/src/node-v10.17.0/node-v10.17.0.tar.xz
5:51:23 PM: : No such file or directory
5:51:23 PM: Provided file to checksum does not exist.
5:51:23 PM: Failed to install node version '10'
5:51:23 PM: Error running command: Build script returned non-zero exit code: 1
5:51:23 PM: Failing build: Failed to build site
5:51:29 PM: failed during stage 'building site': Build script returned non-zero exit code: 1
5:51:29 PM: Finished processing build request in 5m20.05692486s

当我在CMD中使用netlify软件包时,部署都很好。 我该怎么办?

1 个答案:

答案 0 :(得分:1)

如果您在日志上注意到这里:

5:51:23 PM: curl: (56) GnuTLS recv error (-110): The TLS connection
5:51:23 PM: was non-properly terminated.
5:51:23 PM: Binary download from https://nodejs.org/dist/v10.17.0/node-v10.17.0.tar.xz failed, trying source.
5:51:23 PM: grep: /opt/buildhome/.nvm/.cache/src/node-v10.17.0/node-v10.17.0.tar.xz

互联网连接有问题,或者您有权限问题,请跟踪日志,一切都会好起来^ _ ^