【发布时间】:2019-02-18 02:43:16
【问题描述】:
该应用程序已部署并在过去几个月处于活动状态,并且一直在积极更新它,并通过更多前端更新(例如角度设计和布局)进行更新,我更新了作为 nodejs 服务器的 app.js,但此后一直无法使用要加载,我已经完全恢复到以前的版本,就像我做任何事情之前一样,但它似乎仍然无法正常工作,在 Digital Ocean 上,我正在使用 pm2 来运行在服务器上运行的应用程序。我不明白为什么它会这样。
我也有 npm start 只是为了查看它们是否是实际错误和后端,这就是我得到的:
Error: listen EADDRINUSE :::3000
at Object.exports._errnoException (util.js:1020:11)
at exports._exceptionWithHostPort (util.js:1043:20)
at Server._listen2 (net.js:1271:14)
at listen (net.js:1307:10)
at Server.listen (net.js:1403:5)
at EventEmitter.listen (/opt/node_modules/express/lib/application.js:618:24)
at Object.<anonymous> (/opt/app.js:76:5)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
at Module.runMain (module.js:611:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:160:9)
at bootstrap_node.js:507:3
npm ERR! Linux 4.4.0-116-generic
npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "start"
npm ERR! node v6.14.2
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! downeycrm@1.0.0 start: `node app`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the downeycrm@1.0.0 start script 'node app'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the downeycrm package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node app
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs downeycrm
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls downeycrm
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /opt/npm-debug.log
这是什么意思?
【问题讨论】:
标签: web-deployment mean digital-ocean pm2