Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修复无法部署的错误 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jtchen2k
Copy link

image

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

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

@GasolSun36
Copy link

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

@jjbbxxx
Copy link

jjbbxxx commented Nov 16, 2021

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

[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 个错误

@frhfeng
Copy link

frhfeng commented Feb 14, 2023

部署不了了诶。。。

@StarlingLin
Copy link

感谢大佬,部署成功了

@jjbbxxx
Copy link

jjbbxxx commented Apr 4, 2024 via email

1 similar comment
@jjbbxxx
Copy link

jjbbxxx commented Apr 28, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants