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

不能执行npm run start #4635

Closed
Niefee opened this issue Mar 19, 2021 · 3 comments
Closed

不能执行npm run start #4635

Niefee opened this issue Mar 19, 2021 · 3 comments

Comments

@Niefee
Copy link

Niefee commented Mar 19, 2021

Context

  • Node Version:v14.16.0
  • Egg Version:v2.29.3
  • Plugin Name:
    • "egg-mongoose": "^3.3.1",
  • Plugin Version:
  • Platform: Mac os

执行npm run start ,就报报错。据说是mongoose版本引起的,跑npm run dev 这错误也经常出现。

[egg-scripts] Save log file to /Users/xxx/logs
[egg-scripts] Wait Start: 1...
[egg-scripts] Wait Start: 2...
[egg-scripts] Wait Start: 3...
[egg-scripts] Wait Start: 4...
[egg-scripts] tail -n 100 /Users/xxx/logs/master-stderr.log
[egg-scripts] Got error when startup: 
[egg-scripts] (node:15190) Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency
[egg-scripts] (Use `node --trace-warnings ...` to show where the warning was created)
[egg-scripts] (node:15189) Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency
[egg-scripts] (Use `node --trace-warnings ...` to show where the warning was created)
[egg-scripts] (node:15191) Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency
[egg-scripts] (Use `node --trace-warnings ...` to show where the warning was created)
[egg-scripts] (node:15192) Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency
[egg-scripts] (Use `node --trace-warnings ...` to show where the warning was created)
[egg-scripts] (node:15193) Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency
[egg-scripts] (Use `node --trace-warnings ...` to show where the warning was created)
[egg-scripts] (node:15194) Warning: Accessing non-existent property 'MongoError' of module exports inside circular dependency
[egg-scripts] (Use `node --trace-warnings ...` to show where the warning was created)
[egg-scripts] 
[egg-scripts] Start got error, see /Users//logs/master-stderr.log
[egg-scripts] Or use `--ignore-stderr` to ignore stderr at startup.
@egg-bot
Copy link

egg-bot commented Mar 19, 2021

Hello @Niefee. Please provide a reproducible example following the instruction.

Issues labeled by Need Reproduce will be closed if no activities in 7 days.


@Niefee,请根据这个说明提供最小可复现代码。

如果在 7 天内没有进展会被自动关闭。

@egg-bot
Copy link

egg-bot commented Mar 27, 2021

This issue is closed because it has been marked as Need Reproduce, but has not had recent activity.
If you can provide a reproduce, feel free to ping anyone of our maintainers to reopen this issue.
Thank you for your contributions.

@egg-bot egg-bot closed this as completed Mar 27, 2021
@atian25
Copy link
Member

atian25 commented Apr 25, 2021

报错提示里面有写了,warning 要忽略的话,加上 --ignore-stderr

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

No branches or pull requests

4 participants