Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-13617

Cordova platform add browser - Getting copy error while adding platform with cordova-browser@5.0.1

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Cannot Reproduce
    • None
    • None
    • None

    Description

      I have created cordova app with mobilefirst 8 application using CLI with mfp template. Followed below commands

      IBM mobilefirst version: 8.0.0.00-20171024-121931

      Steps:

      cordova create Hello com.example.helloworld HelloWorld --template cordova-template-mfp

      cd Hello

      cordova platform add browser

      While adding browser platform getting below copy errors:

      cp: dest file no such file or directory: D:\Projects\Mobilefirst\HelloCordova\Hello\platforms\browse
      r\platform_www\plugins\cordova-plugin-mfp\worklight\analytics

      cp: copyFileSync: could not write to dest file (code=ENOENT): D:\Projects\Mobilefirst\HelloCordova\He
      llo\platforms\browser\platform_www\plugins\cordova-plugin-mfp\worklight\ibmmfpf.js

      cp: copyFileSync: could not write to dest file (code=ENOENT): D:\Projects\Mobilefirst\HelloCordova\He
      llo\platforms\browser\platform_www\plugins\cordova-plugin-mfp\worklight\typings

      cp: copyFileSync: could not write to dest file (code=ENOENT): D:\Projects\Mobilefirst\HelloCordova\He
      llo\platforms\browser\platform_www\plugins\cordova-plugin-mfp\worklight\node_modules\express

      cp: copyFileSync: could not write to dest file (code=ENOENT): D:\Projects\Mobilefirst\HelloCordova\He
      llo\platforms\browser\platform_www\plugins\cordova-plugin-mfp\worklight\node_modules\request

      cp: copyFileSync: could not write to dest file (code=ENOENT): D:\Projects\Mobilefirst\HelloCordova\He
      llo\platforms\browser\platform_www\plugins\cordova-plugin-mfp\worklight\node_modules\jssha

      cp: copyFileSync: could not write to dest file (code=ENOENT): D:\Projects\Mobilefirst\HelloCordova\He
      llo\platforms\browser\platform_www\plugins\cordova-plugin-mfp\worklight\node_modules\promiz

      cp: copyFileSync: could not write to dest file (code=ENOENT): D:\Projects\Mobilefirst\HelloCordova\He
      llo\platforms\browser\platform_www\plugins\cordova-plugin-mfp\worklight\node_modules\sjcl

      cp: copyFileSync: could not write to dest file (code=ENOENT): D:\Projects\Mobilefirst\HelloCordova\He
      llo\platforms\browser\platform_www\plugins\cordova-plugin-mfp\worklight\proxy.js

      Its displaying platform added successfully to the app. I register app to MFP as well.
      While running it to browser we are getting error.

      cordova run browser

      D:\Projects\Mobilefirst\HelloCordova\Hello>cordova run browser
      module.js:471
      throw err;
      ^

      Error: Cannot find module 'D:\Projects\Mobilefirst\HelloCordova\Hello\platforms\browser\www\plugins\
      cordova-plugin-mfp\worklight\proxy.js'
      at Function.Module._resolveFilename (module.js:469:15)
      at Function.Module._load (module.js:417:25)
      at Module.runMain (module.js:604:10)
      at run (bootstrap_node.js:389:7)
      at startup (bootstrap_node.js:149:9)
      at bootstrap_node.js:504:3
      startPage = index.html
      Static file server running @ http://localhost:8000/index.html
      CTRL + C to shut down
      Error: exit code 1

      Please test with below versions on Windows:

      Cordova : 7.1.0
      npm: 5.5.1
      node : 6.11.0

      Attachments

        Activity

          People

            purplecabbage Jesse MacFadyen
            prashkorane Prashant
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: