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

Mark Veenstra commented on CB-13228:
------------------------------------

[~stevegill] Today I tried to update again to latest cordova with the latest 
browser platform, but still no success:


{code}
user@user-laptop:~/Documenten/Projects/client$ cordova prepare --verbose
Resolving module name for q => q
Checking config.xml and package.json for saved platforms that haven't been 
added to the project
Config.xml and package.json platforms are different. Updating package.json with 
most current list of platforms.
Package.json and config.xml platforms are different. Updating config.xml with 
most current list of platforms.
Discovered platform "[email protected]" in config.xml or package.json. Adding it to 
the project
Resolving module name for q => q
Using cordova-fetch for [email protected]
Running command: npm install [email protected] --production --no-save
Command finished with error code 0: npm 
install,[email protected],--production,--no-save
Error: CordovaError: Failed to fetch platform [email protected]
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Failed to get absolute path to installed module
    at 
/home/mva/.nvm/versions/node/v6.10.1/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/platform/addHelper.js:329:25
    at _rejected 
(/home/mva/.nvm/versions/node/v6.10.1/lib/node_modules/cordova/node_modules/q/q.js:797:24)
    at 
/home/mva/.nvm/versions/node/v6.10.1/lib/node_modules/cordova/node_modules/q/q.js:823:30
    at Promise.when 
(/home/mva/.nvm/versions/node/v6.10.1/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:1142:31)
    at Promise.promise.promiseDispatch 
(/home/mva/.nvm/versions/node/v6.10.1/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:808:41)
    at 
/home/mva/.nvm/versions/node/v6.10.1/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:624:44
    at runSingle 
(/home/mva/.nvm/versions/node/v6.10.1/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:137:13)
    at flush 
(/home/mva/.nvm/versions/node/v6.10.1/lib/node_modules/cordova/node_modules/cordova-fetch/node_modules/q/q.js:125:13)
    at _combinedTickCallback (internal/process/next_tick.js:73:7)
    at process._tickCallback (internal/process/next_tick.js:104:9)
{code}


> cordova-browser@5 doesn't add with cordova<7
> --------------------------------------------
>
>                 Key: CB-13228
>                 URL: https://issues.apache.org/jira/browse/CB-13228
>             Project: Apache Cordova
>          Issue Type: Bug
>    Affects Versions: [email protected]
>            Reporter: Steve Gill
>            Assignee: Steve Gill
>              Labels: browser-next, easy-fix
>             Fix For: 5.0.1
>
>
> {code}
> cordova platform add browser@latest --nofetch
> Warning: using prerelease version 7.0.2-dev ([email protected])
> Adding browser project...
> Unable to load PlatformApi from platform. Error: Cannot find module 
> 'cordova-common'
> Error: Uncaught, unspecified "error" event. (The platform "browser" does not 
> appear to be a valid cordova platform. It is missing API.js. browser not 
> supported.)
> {code}
> I believe cordova-common wasn't properly bundled into cordova-browser@5. 
> Works fine if I add it locally. Easy fix



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

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

Reply via email to