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

lot of warning when npm run dev #80

Closed
smallst opened this issue Aug 5, 2020 · 3 comments
Closed

lot of warning when npm run dev #80

smallst opened this issue Aug 5, 2020 · 3 comments

Comments

@smallst
Copy link

smallst commented Aug 5, 2020

 npm run dev

> onlinejudge@2.0.0 dev /home/smallst/work/CoCoOJ/CoCoOJFE
> node build/dev-server.js

current version is "20200805-a0cc3"
All entries:
oj
- ./src/pages/oj/index.js

admin
- ./src/pages/admin/index.js

[HPM] Proxy created: /api  ->  http://localhost/api
[HPM] Proxy created: /public  ->  http://localhost/api
> Starting dev server...
(node:11922) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:11922) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'which' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'cat' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'cd' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'chmod' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'cp' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'dirs' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'pushd' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'popd' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'echo' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'tempdir' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'pwd' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'exec' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'ls' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'find' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'grep' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'head' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'ln' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'mkdir' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'rm' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'mv' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'sed' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'set' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'sort' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'tail' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'test' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'to' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'toEnd' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'touch' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'uniq' of module exports inside circular dependency
(node:11922) Warning: Accessing non-existent property 'which' of module exports inside circular dependency



 DONE  Compiled successfully in 9638ms                                                                        1:32:35 PM
> Listening at http://localhost:8080

(node:11922) UnhandledPromiseRejectionWarning: Error: Exited with code 3
    at ChildProcess.<anonymous> (/home/smallst/work/CoCoOJ/CoCoOJFE/node_modules/opn/index.js:84:13)
    at Object.onceWrapper (events.js:421:26)
    at ChildProcess.emit (events.js:314:20)
    at maybeClose (internal/child_process.js:1051:16)
    at Socket.<anonymous> (internal/child_process.js:442:11)
    at Socket.emit (events.js:314:20)
    at Pipe.<anonymous> (net.js:673:12)
(node:11922) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:11922) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

是什么原因呢?依赖库版本比较旧?

@Harry-zklcdc
Copy link
Contributor

Harry-zklcdc commented Aug 5, 2020 via email

@smallst
Copy link
Author

smallst commented Aug 5, 2020

😂 行我自己再研究研究

@smallst
Copy link
Author

smallst commented Aug 5, 2020

downgrade node from v14 to v12 solve the warnings.

@smallst smallst closed this as completed Aug 5, 2020
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

No branches or pull requests

2 participants