vscode 怎样关闭控制台自动弹出?

图片描述

如图所示。
控制台总是会自动弹出来提示错误,但我不希望它自动弹出,有哪里能设置的吗?

阅读 8.9k
1 个回答
新手上路,请多包涵

[Error - 下午6:36:10] Failed to load jshint library
(node:9324) UnhandledPromiseRejectionWarning: Error: Failed to load jshint library. Please install jshint in your workspace folder using 'npm install jshint' or globally using 'npm install -g jshint' and then reload.

at Linter.<anonymous> (c:\Users\Administrator\.vscode\extensions\dbaeumer.jshint-0.11.0\jshint-server\out\server.js:336:23)
at Generator.throw (<anonymous>)
at rejected (c:\Users\Administrator\.vscode\extensions\dbaeumer.jshint-0.11.0\jshint-server\out\server.js:9:65)
at processTicksAndRejections (internal/process/task_queues.js:93:5)

(Use Code --trace-warnings ... to show where the warning was created)
(node:9324) 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.ht...). (rejection id: 1)
(node:9324) [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.
[Error - 下午6:36:16] Failed to load jshint library
(node:9324) UnhandledPromiseRejectionWarning: Error: Failed to load jshint library. Please install jshint in your workspace folder using 'npm install jshint' or globally using 'npm install -g jshint' and then reload.

at Linter.<anonymous> (c:\Users\Administrator\.vscode\extensions\dbaeumer.jshint-0.11.0\jshint-server\out\server.js:336:23)
at Generator.throw (<anonymous>)
at rejected (c:\Users\Administrator\.vscode\extensions\dbaeumer.jshint-0.11.0\jshint-server\out\server.js:9:65)
at processTicksAndRejections (internal/process/task_queues.js:93:5)

(node:9324) 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.ht...). (rejection id: 2)
[Error - 下午6:36:20] Failed to load jshint library
(node:9324) UnhandledPromiseRejectionWarning: Error: Failed to load jshint library. Please install jshint in your workspace folder using 'npm install jshint' or globally using 'npm install -g jshint' and then reload.

at Linter.<anonymous> (c:\Users\Administrator\.vscode\extensions\dbaeumer.jshint-0.11.0\jshint-server\out\server.js:336:23)
at Generator.throw (<anonymous>)
at rejected (c:\Users\Administrator\.vscode\extensions\dbaeumer.jshint-0.11.0\jshint-server\out\server.js:9:65)
at processTicksAndRejections (internal/process/task_queues.js:93:5)

(node:9324) 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.ht...). (rejection id: 3)

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进