Results 1 to 3 of 3

Thread: Visual Studio Code on win7 reports error: (node:6732) UnhandledPromiseRejectionWarnin

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2008
    Posts
    522

    Visual Studio Code on win7 reports error: (node:6732) UnhandledPromiseRejectionWarnin

    Visual Studio Code on win7 reports error: (node:6732) UnhandledPromiseRejectionWarning ?
    Installing Visual Studio Code on win7 64bit when running the application gives the following error:
    Windows PowerShell
    Copyright (C) 2009 Microsoft Corporation. All rights reserved.

    PS E:\abc_ReactNative\blank> npm start

    > blank@1.0.0 start E:\abc_ReactNative\blank
    > expo start

    (node:6732) UnhandledPromiseRejectionWarning: E:\abc_ReactNative\blank\node_modules\@expo\package-manager\build\ios\CocoaPodsPackageManager.js:81
    console.log(chalk_1.default.red(error.stderr ?? error.message));
    ^

    SyntaxError: Unexpected token '?'
    at Object.compileFunction (vm.js:344:18)
    at wrapSafe (internal/modules/cjs/loader.js:1048:15)
    at Module._compile (internal/modules/cjs/loader.js:1082:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1138:10)
    at Module.load (internal/modules/cjs/loader.js:982:32)
    at Function.Module._load (internal/modules/cjs/loader.js:875:14)
    at Module.require (internal/modules/cjs/loader.js:1022:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (E:\abc_ReactNative\blank\node_modules\@expo\package-manager\build\index.js:19:14)
    at Module._compile (internal/modules/cjs/loader.js:1118:30)
    (Use `node --trace-warnings ...` to show where the warnings were created)
    (node:6732) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originates
    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_...ejections_mode). (rejection id: 1)
    (node:6732) [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.

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,677

    Re: Visual Studio Code on win7 reports error: (node:6732) UnhandledPromiseRejectionWa

    It's not VS Code that's throwing an error ... it's something that's in your node modules folder. What version of npm, node are you running? And when's the last time you did an npm install to update your packages?


    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2008
    Posts
    522

    Re: Visual Studio Code on win7 reports error: (node:6732) UnhandledPromiseRejectionWa

    I just started learning VS Code, I installed npm version: 6.14.4 and node version v13.14.0, how do I fix this error ?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width