0
I’m trying to create a project with Cordova.
I already have everything installed, npm, Cordova sdk android and etc..
When I create a project in the directories of my pc, everything works normally.
cordova create teste br.com.anderson Teste
cordova platform add android
cordova run android
But when I try to run it inside a network drive mapped this error when adding the platform:
U:\app1.0\app>cordova platform add android
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms\android
Package: br.com.anderson
Name: Anderson
Activity: MainActivity
Android target: android-22
Copying template files...
cp: copyFileSync: could not write to dest file (code=ENOENT):platforms\android\.gitignore
Error: cmd: Command failed with exit code 1
at ChildProcess.whenDone (C:\Users\Anderson\AppData\Roaming\npm\node_modules\cordova\node_modules\cordova-lib\src\cordova\superspawn.js:139:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:766:16)
at Process.ChildProcess._handle.onexit (child_process.js:833:5)
Someone’s had that problem before?
No, thanks for trying to help.
– AndersonSouza