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

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

{code:java}
// code placeholder
C:\mytestapp>nvm ls

  * 8.11.3 (Currently using 64-bit executable)

C:\mytestapp>nvm uninstall 8.11.3
Uninstalling node v8.11.3... done
C:\mytestapp>nvm ls

No installations recognized.

C:\mytestapp>nvm install 8.11.3
Downloading node.js version 8.11.3 (64-bit)...
Complete
Creating C:\NVM\nvm\temp

Downloading npm version 5.6.0... Complete
Installing npm v5.6.0...

Installation complete. If you want to use this version, type

nvm use 8.11.3

C:\mytestapp>cordova create issue issue.platform.add
Creating a new cordova project.

C:\mytestapp>cd issue

C:\mytestapp\issue>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:8252) 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
    at C:\Program 
Files\nodejs\node_modules\cordova\node_modules\cordova-lib\src\cordova\platform\addHelper.js:312:25
    at _rejected (C:\Program 
Files\nodejs\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:797:24)
    at C:\Program 
Files\nodejs\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:823:30
    at Promise.when (C:\Program 
Files\nodejs\node_modules\cordova\node_modules\q\q.js:1142:31)
    at Promise.promise.promiseDispatch (C:\Program 
Files\nodejs\node_modules\cordova\node_modules\q\q.js:808:41)
    at C:\Program Files\nodejs\node_modules\cordova\node_modules\q\q.js:624:44
    at runSingle (C:\Program 
Files\nodejs\node_modules\cordova\node_modules\q\q.js:137:13)
    at flush (C:\Program 
Files\nodejs\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:8252) 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:8252) [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.

C:\mytestapp\issue>cordova platform add android --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-android@~7.0.0
saving
Running command: cmd "/s /c ""C:\Program Files\nodejs\npm.cmd" install 
cordova-android@~7.0.0 --production --save""
Command finished with error code ENOENT: cmd /s /c ""C:\Program 
Files\nodejs\npm.cmd" install cordova-android@~7.0.0 --production --save"
(node:9820) UnhandledPromiseRejectionWarning: CordovaError: Failed to fetch 
platform cordova-android@~7.0.0
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
    at C:\Program 
Files\nodejs\node_modules\cordova\node_modules\cordova-lib\src\cordova\platform\addHelper.js:312:25
    at _rejected (C:\Program 
Files\nodejs\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:797:24)
    at C:\Program 
Files\nodejs\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:823:30
    at Promise.when (C:\Program 
Files\nodejs\node_modules\cordova\node_modules\q\q.js:1142:31)
    at Promise.promise.promiseDispatch (C:\Program 
Files\nodejs\node_modules\cordova\node_modules\q\q.js:808:41)
    at C:\Program Files\nodejs\node_modules\cordova\node_modules\q\q.js:624:44
    at runSingle (C:\Program 
Files\nodejs\node_modules\cordova\node_modules\q\q.js:137:13)
    at flush (C:\Program 
Files\nodejs\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:9820) 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:9820) [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.

C:\mytestapp\issue>cordova platform add ios --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-ios@~4.5.4
saving
Running command: cmd "/s /c ""C:\Program Files\nodejs\npm.cmd" install 
cordova-ios@~4.5.4 --production --save""
Command finished with error code ENOENT: cmd /s /c ""C:\Program 
Files\nodejs\npm.cmd" install cordova-ios@~4.5.4 --production --save"
(node:2336) UnhandledPromiseRejectionWarning: CordovaError: Failed to fetch 
platform cordova-ios@~4.5.4
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
    at C:\Program 
Files\nodejs\node_modules\cordova\node_modules\cordova-lib\src\cordova\platform\addHelper.js:312:25
    at _rejected (C:\Program 
Files\nodejs\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:797:24)
    at C:\Program 
Files\nodejs\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:823:30
    at Promise.when (C:\Program 
Files\nodejs\node_modules\cordova\node_modules\q\q.js:1142:31)
    at Promise.promise.promiseDispatch (C:\Program 
Files\nodejs\node_modules\cordova\node_modules\q\q.js:808:41)
    at C:\Program Files\nodejs\node_modules\cordova\node_modules\q\q.js:624:44
    at runSingle (C:\Program 
Files\nodejs\node_modules\cordova\node_modules\q\q.js:137:13)
    at flush (C:\Program 
Files\nodejs\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:2336) 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:2336) [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.

C:\mytestapp\issue>
{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