Valine-Admin icon indicating copy to clipboard operation
Valine-Admin copied to clipboard

修复无法部署的错误

Open billchen2k opened this issue 4 years ago • 6 comments

image

LeanCloud 已经不支持 node.js 6.* 的部署。

更新了 package.json 中的 node.js 版本号。

billchen2k avatar Apr 16 '20 17:04 billchen2k

请问大佬更新到库里了吗?我还是现在部署不上╥﹏╥...,2020.7.17

GasolSun36 avatar Jul 17 '20 04:07 GasolSun36

求救!出现这种错误,怎么解决啊?

[2021-11-16T16:46:00.437Z][system] 实例日志:[ERROR] npm ERR! Exit status 1 [ERROR] npm ERR! [ERROR] npm ERR! Failed at the [email protected] start script 'node server.js'. [ERROR] npm ERR! Make sure you have the latest version of node.js and npm installed. [ERROR] npm ERR! If you do, this is most likely a problem with the node-js-getting-started package, [ERROR] npm ERR! not with npm itself. [ERROR] npm ERR! Tell the author that this fails on your system: [ERROR] npm ERR! node server.js [ERROR] npm ERR! You can get information on how to open an issue for this project with: [ERROR] npm ERR! npm bugs node-js-getting-started [ERROR] npm ERR! Or if that isn't available, you can get their info via: [ERROR] npm ERR! npm owner ls node-js-getting-started [ERROR] npm ERR! There is likely additional logging output above. [ERROR] npm ERR! Please include the following file with any support request: [ERROR] npm ERR! /home/leanengine/app/npm-debug.log [INFO] > [email protected] start /home/leanengine/app [INFO] > node server.js [ERROR] fs.js:642 [ERROR] return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); [ERROR] ^ [ERROR] Error: ENOENT: no such file or directory, open '/home/leanengine/app/template/西西的网站/notice.ejs' [ERROR] at Error (native) [ERROR] at Object.fs.openSync (fs.js:642:18) [ERROR] at Object.fs.readFileSync (fs.js:510:33) [ERROR] at Object. (/home/leanengine/app/utilities/send-mail.js:24:37) [ERROR] at Module._compile (module.js:577:32) [ERROR] at Object.Module._extensions..js (module.js:586:10) [ERROR] at Module.load (module.js:494:32) [ERROR] at tryModuleLoad (module.js:453:12) [ERROR] at Function.Module._load (module.js:445:3) [ERROR] at Module.require (module.js:504:17) [ERROR] npm ERR! Linux 5.4.0-75-generic [ERROR] npm ERR! argv "/usr/local/nvm/versions/node/v6.17.1/bin/node" "/usr/local/bin/npm" "start" [ERROR] npm ERR! node v6.17.1 [ERROR] npm ERR! npm v3.10.10 [ERROR] npm ERR! code ELIFECYCLE [ERROR] npm ERR! [email protected] start: node server.js [ERROR] npm ERR! Exit status 1 [ERROR] npm ERR! [ERROR] npm ERR! Failed at the [email protected] start script 'node server.js'. [ERROR] npm ERR! Make sure you have the latest version of node.js and npm installed. [ERROR] npm ERR! If you do, this is most likely a problem with the node-js-getting-started package, [ERROR] npm ERR! not with npm itself. [ERROR] npm ERR! Tell the author that this fails on your system: [ERROR] npm ERR! node server.js [ERROR] npm ERR! You can get information on how to open an issue for this project with: [ERROR] npm ERR! npm bugs node-js-getting-started [ERROR] npm ERR! Or if that isn't available, you can get their info via: [ERROR] npm ERR! npm owner ls node-js-getting-started [ERROR] npm ERR! There is likely additional logging output above. [ERROR] npm ERR! Please include the following file with any support request: [ERROR] npm ERR! /home/leanengine/app/npm-debug.log [INFO] > [email protected] start /home/leanengine/app [INFO] > node server.js [ERROR] fs.js:642 [ERROR] return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); [ERROR] ^ [ERROR] Error: ENOENT: no such file or directory, open '/home/leanengine/app/template/西西的网站/notice.ejs' [ERROR] at Error (native) [ERROR] at Object.fs.openSync (fs.js:642:18) [ERROR] at Object.fs.readFileSync (fs.js:510:33) [ERROR] at Object. (/home/leanengine/app/utilities/send-mail.js:24:37) [ERROR] at Module._compile (module.js:577:32) [ERROR] at Object.Module._extensions..js (module.js:586:10) [ERROR] at Module.load (module.js:494:32) [ERROR] at tryModuleLoad (module.js:453:12) [ERROR] at Function.Module._load (module.js:445:3) [ERROR] at Module.require (module.js:504:17) [ERROR] npm ERR! Linux 5.4.0-75-generic [ERROR] npm ERR! argv "/usr/local/nvm/versions/node/v6.17.1/bin/node" "/usr/local/bin/npm" "start" [ERROR] npm ERR! node v6.17.1 [ERROR] npm ERR! npm v3.10.10 [ERROR] npm ERR! code ELIFECYCLE [ERROR] npm ERR! [email protected] start: node server.js [ERROR] npm ERR! Exit status 1 [ERROR] npm ERR! [ERROR] npm ERR! Failed at the [email protected] start script 'node server.js'. [ERROR] npm ERR! Make sure you have the latest version of node.js and npm installed. [ERROR] npm ERR! If you do, this is most likely a problem with the node-js-getting-started package, [ERROR] npm ERR! not with npm itself. [ERROR] npm ERR! Tell the author that this fails on your system: [ERROR] npm ERR! node server.js [ERROR] npm ERR! You can get information on how to open an issue for this project with: [ERROR] npm ERR! npm bugs node-js-getting-started [ERROR] npm ERR! Or if that isn't available, you can get their info via: [ERROR] npm ERR! npm owner ls node-js-getting-started [ERROR] npm ERR! There is likely additional logging output above. [ERROR] npm ERR! Please include the following file with any support request: [ERROR] npm ERR! /home/leanengine/app/npm-debug.log [2021-11-16T16:46:00.438Z][system] 实例启动失败: 无法访问应用的 Web 端口(Error: connect ECONNREFUSED),请确保程序在 30 秒内正确地启动了 HTTP 服务 [2021-11-16T16:46:01.484Z][system] 实例启动失败: 无法访问应用的 Web 端口(Error: connect ECONNREFUSED),请确保程序在 30 秒内正确地启动了 HTTP 服务 [2021-11-16T16:46:01.485Z][system] 部署发生错误:发生了 1 个错误

jjbbxxx avatar Nov 16 '21 16:11 jjbbxxx

部署不了了诶。。。

frhfeng avatar Feb 14 '23 19:02 frhfeng

感谢大佬,部署成功了

StarlingLin avatar Apr 04 '24 08:04 StarlingLin

您好,我已收到您的邮件。

jjbbxxx avatar Apr 04 '24 08:04 jjbbxxx

您好,我已收到您的邮件。

jjbbxxx avatar Apr 28 '24 04:04 jjbbxxx