[ 
https://issues.apache.org/jira/browse/CB-13740?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Sasha Kalmikov updated CB-13740:
--------------------------------
    Description: 
When running "cordova requirements" following error thrown:

*Windows*:
{noformat}
Requirements check results for browser:
(node:5776) UnhandledPromiseRejectionWarning: Unhandled promise rejection 
(rejection id: 1): TypeError: Cannot read property 'forEach' of undefined
(node:5776) 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.
{noformat}

*macOS*:

{noformat}
Requirements check results for browser:
(node:72094) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 
'forEach' of undefined
    at /usr/local/lib/node_modules/cordova/src/cli.js:397:35
    at Array.map (<anonymous>)
    at /usr/local/lib/node_modules/cordova/src/cli.js:388:68
    at _fulfilled 
(/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done 
(/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:816:30)
    at Promise.promise.promiseDispatch 
(/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:749:13)
    at 
/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:557:44
    at flush 
(/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:108:17)
    at process._tickCallback (internal/process/next_tick.js:150:11)
    at Function.Module.runMain (module.js:703:11)
(node:72094) 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(). 
(rejection id: 1)
(node:72094) [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.
{noformat}



  was:
When running "cordova requirements" following error thrown:


{noformat}
Requirements check results for browser:
(node:5776) UnhandledPromiseRejectionWarning: Unhandled promise rejection 
(rejection id: 1): TypeError: Cannot read property 'forEach' of undefined
(node:5776) 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.
{noformat}



> CLI - "cordova requirements" throws error (UnhandledPromiseRejectionWarning)
> ----------------------------------------------------------------------------
>
>                 Key: CB-13740
>                 URL: https://issues.apache.org/jira/browse/CB-13740
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-browser, cordova-cli
>         Environment: Windows 10
> Node: v7.5.0
> NPM: 4.1.2
> Cordova CLI: 8.0.0
> ---
> macOS High Sierra 10.13.1
> node - v9.3.0
> npm - 5.6.0
> cordova - 8.0.0
>            Reporter: Sasha Kalmikov
>
> When running "cordova requirements" following error thrown:
> *Windows*:
> {noformat}
> Requirements check results for browser:
> (node:5776) UnhandledPromiseRejectionWarning: Unhandled promise rejection 
> (rejection id: 1): TypeError: Cannot read property 'forEach' of undefined
> (node:5776) 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.
> {noformat}
> *macOS*:
> {noformat}
> Requirements check results for browser:
> (node:72094) UnhandledPromiseRejectionWarning: TypeError: Cannot read 
> property 'forEach' of undefined
>     at /usr/local/lib/node_modules/cordova/src/cli.js:397:35
>     at Array.map (<anonymous>)
>     at /usr/local/lib/node_modules/cordova/src/cli.js:388:68
>     at _fulfilled 
> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:787:54)
>     at self.promiseDispatch.done 
> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:816:30)
>     at Promise.promise.promiseDispatch 
> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:749:13)
>     at 
> /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:557:44
>     at flush 
> (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:108:17)
>     at process._tickCallback (internal/process/next_tick.js:150:11)
>     at Function.Module.runMain (module.js:703:11)
> (node:72094) 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(). 
> (rejection id: 1)
> (node:72094) [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.
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org
For additional commands, e-mail: issues-h...@cordova.apache.org

Reply via email to