#node.js #vue.js #heroku #npm #deployment
Вопрос:
Здравствуйте, я пытаюсь запустить свое приложение с помощью Heroku. Это приложение хорошо работает локально на моем компьютере, но когда я пытаюсь открыть его с помощью Heroku, я получаю этот хвост журнала в командной строке:
2021-10-08T10:17:07.686244 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
2021-10-08T10:17:07.686316 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
2021-10-08T10:17:07.686405 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
2021-10-08T10:17:07.686488 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
2021-10-08T10:17:07.686590 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
2021-10-08T10:17:07.686666 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
2021-10-08T10:17:07.686730 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
2021-10-08T10:17:07.686804 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
2021-10-08T10:17:07.686868 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
2021-10-08T10:17:07.686924 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
2021-10-08T10:17:07.687001 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
2021-10-08T10:17:07.687055 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
2021-10-08T10:17:07.687102 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
2021-10-08T10:17:07.687161 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
2021-10-08T10:17:07.687220 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
2021-10-08T10:17:07.687279 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
2021-10-08T10:17:07.687322 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
2021-10-08T10:17:07.687366 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
2021-10-08T10:17:07.687408 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
2021-10-08T10:17:07.687453 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
2021-10-08T10:17:07.687509 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
2021-10-08T10:17:07.687553 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
2021-10-08T10:17:07.687596 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
2021-10-08T10:17:07.687638 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'which' of module exports inside circular dependency
2021-10-08T10:17:59.521365 00:00 app[web.1]: > Listening at http://localhost:46172
2021-10-08T10:17:59.521372 00:00 app[web.1]:
2021-10-08T10:17:59.929029 00:00 heroku[web.1]: State changed from starting to up
2021-10-08T10:18:00.470738 00:00 app[web.1]: /app/node_modules/opn/index.js:85
2021-10-08T10:18:00.470746 00:00 app[web.1]: reject(new Error('Exited with code ' code));
2021-10-08T10:18:00.470746 00:00 app[web.1]: ^
2021-10-08T10:18:00.470747 00:00 app[web.1]:
2021-10-08T10:18:00.470747 00:00 app[web.1]: Error: Exited with code 3
2021-10-08T10:18:00.470748 00:00 app[web.1]: at ChildProcess.<anonymous> (/app/node_modules/opn/index.js:85:13)
2021-10-08T10:18:00.470748 00:00 app[web.1]: at Object.onceWrapper (node:events:510:26)
2021-10-08T10:18:00.470749 00:00 app[web.1]: at ChildProcess.emit (node:events:390:28)
2021-10-08T10:18:00.470749 00:00 app[web.1]: at maybeClose (node:internal/child_process:1064:16)
2021-10-08T10:18:00.470749 00:00 app[web.1]: at Socket.<anonymous> (node:internal/child_process:450:11)
2021-10-08T10:18:00.470750 00:00 app[web.1]: at Socket.emit (node:events:390:28)
2021-10-08T10:18:00.470750 00:00 app[web.1]: at Pipe.<anonymous> (node:net:672:12)
2021-10-08T10:18:00.738639 00:00 heroku[web.1]: Process exited with status 1
2021-10-08T10:18:00.855270 00:00 heroku[web.1]: State changed from up to crashed
2021-10-08T10:18:00.881367 00:00 heroku[web.1]: State changed from crashed to starting
2021-10-08T10:18:09.529515 00:00 heroku[web.1]: Starting process with command `npm start`
2021-10-08T10:18:11.831380 00:00 app[web.1]:
2021-10-08T10:18:11.831398 00:00 app[web.1]: > fuzzy@1.0.0 start
2021-10-08T10:18:11.831399 00:00 app[web.1]: > npm run dev
2021-10-08T10:18:11.831399 00:00 app[web.1]:
2021-10-08T10:18:12.418568 00:00 app[web.1]:
2021-10-08T10:18:12.418582 00:00 app[web.1]: > fuzzy@1.0.0 dev
2021-10-08T10:18:12.418582 00:00 app[web.1]: > node build/dev-server.js
2021-10-08T10:18:12.418582 00:00 app[web.1]:
2021-10-08T10:18:14.662482 00:00 app[web.1]: > Starting dev server...
2021-10-08T10:18:14.663732 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
2021-10-08T10:18:14.663734 00:00 app[web.1]: (Use `node --trace-warnings ...` to show where the warning was created)
2021-10-08T10:18:14.663912 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
2021-10-08T10:18:14.663973 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
2021-10-08T10:18:14.664024 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
2021-10-08T10:18:14.664071 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
2021-10-08T10:18:14.667334 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
2021-10-08T10:18:14.667415 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
2021-10-08T10:18:14.667493 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
2021-10-08T10:18:14.667554 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
2021-10-08T10:18:14.667631 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
2021-10-08T10:18:14.667687 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
2021-10-08T10:18:14.667734 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
2021-10-08T10:18:14.667786 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
2021-10-08T10:18:14.667834 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
2021-10-08T10:18:14.667873 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
2021-10-08T10:18:14.667918 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
2021-10-08T10:18:14.667953 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
2021-10-08T10:18:14.667987 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
2021-10-08T10:18:14.668027 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
2021-10-08T10:18:14.668070 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
2021-10-08T10:18:14.668113 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
2021-10-08T10:18:14.668146 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
2021-10-08T10:18:14.668177 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
2021-10-08T10:18:14.668209 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
2021-10-08T10:18:14.668240 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
2021-10-08T10:18:14.668314 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
2021-10-08T10:18:14.668348 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
2021-10-08T10:18:14.668380 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
2021-10-08T10:18:14.668411 00:00 app[web.1]: (node:34) Warning: Accessing non-existent property 'which' of module exports inside circular dependency
2021-10-08T10:18:59.334971 00:00 app[web.1]: > Listening at http://localhost:44001
2021-10-08T10:18:59.334977 00:00 app[web.1]:
2021-10-08T10:18:59.625056 00:00 app[web.1]: /app/node_modules/opn/index.js:85
2021-10-08T10:18:59.625070 00:00 app[web.1]: reject(new Error('Exited with code ' code));
2021-10-08T10:18:59.625071 00:00 app[web.1]: ^
2021-10-08T10:18:59.625071 00:00 app[web.1]:
2021-10-08T10:18:59.625072 00:00 app[web.1]: Error: Exited with code 3
2021-10-08T10:18:59.625074 00:00 app[web.1]: at ChildProcess.<anonymous> (/app/node_modules/opn/index.js:85:13)
2021-10-08T10:18:59.625074 00:00 app[web.1]: at Object.onceWrapper (node:events:510:26)
2021-10-08T10:18:59.625074 00:00 app[web.1]: at ChildProcess.emit (node:events:390:28)
2021-10-08T10:18:59.625075 00:00 app[web.1]: at maybeClose (node:internal/child_process:1064:16)
2021-10-08T10:18:59.625075 00:00 app[web.1]: at Socket.<anonymous> (node:internal/child_process:450:11)
2021-10-08T10:18:59.625075 00:00 app[web.1]: at Socket.emit (node:events:390:28)
2021-10-08T10:18:59.625076 00:00 app[web.1]: at Pipe.<anonymous> (node:net:672:12)
2021-10-08T10:18:59.975856 00:00 heroku[web.1]: Process exited with status 1
2021-10-08T10:19:00.272239 00:00 heroku[web.1]: State changed from starting to crashed
2021-10-08T10:19:00.956953 00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=fuzzi.herokuapp.com request_id=3f8c71d4-b1d3-48c1-bd9e-dd40d3c41e9a fwd="46.177.223.184" dyno= connect= service= status=503 bytes= protocol=https
2021-10-08T10:19:04.900144 00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=fuzzi.herokuapp.com request_id=a8ce494c-817f-45d8-98b9-7c4693de122f fwd="46.177.223.184" dyno= connect= service= status=503 bytes= protocol=https
Я не могу найти решение этой проблемы, и мне нужна помощь. Что мне делать ?
У тебя есть какие-нибудь мысли по этому поводу ?
Мы будем признательны за любые отзывы.