Prashant created CB-13617:
-----------------------------
Summary: Cordova platform add browser - Getting copy error while
adding platform with [email protected]
Key: CB-13617
URL: https://issues.apache.org/jira/browse/CB-13617
Project: Apache Cordova
Issue Type: Bug
Components: cordova-browser, cordova-cli
Reporter: Prashant
Assignee: Jesse MacFadyen
Priority: Blocker
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
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]