[ 
https://issues.apache.org/jira/browse/CB-14268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16580201#comment-16580201
 ] 

jairam  commented on CB-14268:
------------------------------

 
{code:java}
// 
cordova platform add browser --verbose
No scripts found for hook "before_platform_add".
No version supplied. Retrieving version from config.xml...
Grabbing pinned version.
Using cordova-fetch for cordova-browser@~5.0.1
saving
Running command: cmd "/s /c ""C:\Program Files\nodejs\npm.cmd" install 
cordova-browser@~5.0.1 --production --save""
Command finished with error code ENOENT: cmd /s /c ""C:\Program 
Files\nodejs\npm.cmd" install cordova-browser@~5.0.1 --production --save"
(node:6672) UnhandledPromiseRejectionWarning: CordovaError: Failed to fetch 
platform cordova-browser@~5.0.1
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
{code}
Error: cmd: Command failed with exit code ENOENT
    at 
C:\Users\88\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\platform\addHelper.js:312:25
    at _rejected 
(C:\Users\88\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:797:24)
    at 
C:\Users\88\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:823:30
    at Promise.when 
(C:\Users\88\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:1142:31)
    at Promise.promise.promiseDispatch 
(C:\Users\88\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:808:41)
    at 
C:\Users\88\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:624:44
    at runSingle 
(C:\88\jbodapati\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:137:13)
    at flush 
(C:\Users\88\AppData\Roaming\npm\node_modules\cordova\node_modules\q\q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)
(node:6672) 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:6672) [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.

 

> Unable to Fetch Platform browser
> --------------------------------
>
>                 Key: CB-14268
>                 URL: https://issues.apache.org/jira/browse/CB-14268
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: cordova-browser
>            Reporter: jairam 
>            Assignee: Jan Piotrowski (Sujan)
>            Priority: Major
>
> $cordova platform add browser
> Using cordova-fetch for cordova-browser@~5.0.1
> (node:3212) UnhandledPromiseRejectionWarning: CordovaError: Failed to fetch 
> platform cordova-browser@~5.0.1
> Probably this is either a connection problem, or platform spec is incorrect.
> Check your connection and platform name/version/URL.
> Error: cmd: Command failed with exit code ENOENT



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to