You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 9, 2022. It is now read-only.
Connecting to mongodb://127.0.0.1:27017/ptpush...
(node:24992) DeprecationWarning: Mongoose: mpromise (mongoose's default promise library) is deprecated, plug in your own promise library instead: http://mongoosejs.com/docs/promises.html
Connected to database
Http Server running at http://:::3000
events.js:182
throw er; // Unhandled 'error' event
^
TypeError: Reduce of empty array with no initial value
at Array.reduce ()
at /root/PackageTracker-NodeServer/tasks.js:52:57
at model.Query. (/root/PackageTracker-NodeServer/node_modules/mongoose/lib/model.js:3822:16)
at /root/PackageTracker-NodeServer/node_modules/kareem/index.js:273:21
at /root/PackageTracker-NodeServer/node_modules/kareem/index.js:131:16
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! packagetracker-push@0.1.0 start: node ./server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the packagetracker-push@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2017-09-14T14_00_00_086Z-debug.log
打开日志文件 2017-09-14T14_00_00_086Z-debug.log,部分信息如下:
18 verbose node v8.4.0
19 verbose npm v5.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error packagetracker-push@0.1.0 start: node ./server.js
22 error Exit status 1
23 error Failed at the packagetracker-push@0.1.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
打开日志文件 2017-09-14T14_00_00_086Z-debug.log,部分信息如下:
自行解决 “ELIFECYCLE” 无果,求助。