[
https://issues.apache.org/jira/browse/CB-14268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16580377#comment-16580377
]
jairam commented on CB-14268:
------------------------------
Sujan, I did reĀ install node using NVM , and I also re installed cordova and
did multiple restarts of my machine
and I am still seeing the same errror,
{code:java}
// code placeholder
C:\Users\jbodapati\Desktop\Jai\dilbar\app>npm install cordova browser
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] No repository field.
+ [email protected]
+ [email protected]
added 442 packages in 71.646s
C:\Users\jbodapati\Desktop\Jai\dilbar\app>npm install cordova android
npm WARN [email protected] No repository field.
+ [email protected]
+ [email protected]
added 1 package and updated 1 package in 4.571s
C:\Users\jbodapati\Desktop\Jai\dilbar\app>npm install cordova ios
npm WARN [email protected] No repository field.
+ [email protected]
+ [email protected]
added 1 package and updated 1 package in 4.466s
C:\Users\jbodapati\Desktop\Jai\dilbar\app>cordova build android
(node:1312) UnhandledPromiseRejectionWarning: CordovaError: No platforms added
to this project. Please use `cordova platform add <platform>`.
at Object.preProcessOptions (C:\Program
Files\nodejs\node_modules\cordova\node_modules\cordova-lib\src\cordova\util.js:312:15)
at C:\Program
Files\nodejs\node_modules\cordova\node_modules\cordova-lib\src\cordova\build.js:28:31
at _fulfilled (C:\Program
Files\nodejs\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:787:54)
at self.promiseDispatch.done (C:\Program
Files\nodejs\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:816:30)
at Promise.promise.promiseDispatch (C:\Program
Files\nodejs\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:749:13)
at C:\Program
Files\nodejs\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:810:14
at flush (C:\Program
Files\nodejs\node_modules\cordova\node_modules\cordova-lib\node_modules\q\q.js:108:17)
at _combinedTickCallback (internal/process/next_tick.js:131:7)
at process._tickCallback (internal/process/next_tick.js:180:9)
at Function.Module.runMain (module.js:695:11)
(node:1312) 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:1312) [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:\Users\jbodapati\Desktop\Jai\dilbar\app>cordova platform add browser
Using cordova-fetch for cordova-browser@^0.2.6
(node:1244) UnhandledPromiseRejectionWarning: CordovaError: Failed to fetch
platform cordova-browser@^0.2.6
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:1244) 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:1244) [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.
{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]