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

Filip Maj commented on CB-4074:
-------------------------------

It's definitely a create script issue, judging by the stack trace. It fails at 
the {{read}} method, which is used in two spots:

1. [Reading in the VERSION 
file|https://github.com/apache/cordova-android/blob/df1536ea77e97b7d362a19582f8beddd168c5ec3/bin/create.js#L144],
 like you mentioned [~mwbrooks].
2. Used for replacing certain tokens like package ID and name, which as [done 
at the end of the create 
script|https://github.com/apache/cordova-android/blob/df1536ea77e97b7d362a19582f8beddd168c5ec3/bin/create.js#L205-L210].

You may be right Mike. It looks like the key thing is the call to create does 
so cross-drive:

{code}
Running bin/create for platform "android" with command: ""C:\Users\Tex\.cordova\
lib\android\cordova\2.9.0\bin\create" "E:\repositories\test\platforms\android"
"io.cordova.hellocordova" "HelloCordova"" (output to follow)
C:\Users\Tex\.cordova\lib\android\cordova\2.9.0\bin\create.js(54, 5) Erreur d'ex
ecution Microsoft JScript: Fichier introuvable
{code}

That is, the drive of the library is different from the drive of the project.

[~textoo], can you try creating a cordova project on your {{C:\}} drive instead 
of on your {{E:\}} drive and see if you get the same issue?
                
> Error when adding android platform on Windows 7
> -----------------------------------------------
>
>                 Key: CB-4074
>                 URL: https://issues.apache.org/jira/browse/CB-4074
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CLI
>         Environment: Windows 7
>            Reporter: Lisa Seacat DeLuca
>            Assignee: Benn Mapes
>
> I got past the issue where I wasn't able to install cordova on my windows 7 
> machine.  I create a new project just fine but when I tried to add android as 
> a platform I see the following error:
> C:\workspaces\cordovacli\helloworld>cordova platform add android
> shell.js: internal error
> Error: EPERM, operation not permitted 
> 'C:\Users\me\.cordova\lib\android\cordova\2.9.0\cordova-android-2.9.0-df1536e\test'
>     at Object.fs.renameSync (fs.js:543:18)
>     at 
> C:\Users\me\AppData\Roaming\npm\node_modules\cordova\node_modules\shelljs\shell.js:487:8
>     at Array.forEach (native)
>     at Object._mv 
> (C:\Users\me\AppData\Roaming\npm\node_modules\cordova\node_modules\shelljs\shell.js:463:11)
>     at Object.mv 
> (C:\Users\me\AppData\Roaming\npm\node_modules\cordova\node_modules\shelljs\shell.js:1471:23)
>     at Extract.<anonymous> 
> (C:\Users\me\AppData\Roaming\npm\node_modules\cordova\src\lazy_load.js:115:43)
>     at Extract.EventEmitter.emit (events.js:117:20)
>     at DirWriter.<anonymous> 
> (C:\Users\me\AppData\Roaming\npm\node_modules\cordova\node_modules\tar\lib\extract.js:66:8)
>     at DirWriter.EventEmitter.emit (events.js:117:20)
>     at end 
> (C:\Users\me\AppData\Roaming\npm\node_modules\cordova\node_modules\tar\node_modules\fstream\lib\writer.js:323:12)
> --------------
> note: I can use eclipse and create an android project with no problem and 
> test on devices and emulators.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to