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

Angela Fowler commented on CB-4149:
-----------------------------------

Added some logging to Gruntfile.js :
   c:\development\cordova-2.9.0\cordova-js>grunt
   Running "cordovajs:android" (cordovajs) task
   computeGitVersion
   gitPath git
   process.platform win32
   err Error: Command failed: fatal: Not a git repository (or any of the parent 
directories): .git

   gitPath "C:\Program Files\Git\bin\git.exe"
   Fatal error: Error: Command failed: The system cannot find the path 
specified.

So this seems to be assuming that cordova has been installed using npm and you 
are running grunt in repository directory
We tried this for cordova-android and had some problems so went back to using 
the create.js
Tried again, the npm-debug.log is attached
                
> Grunt cordovajs task cannot find the path specified
> ---------------------------------------------------
>
>                 Key: CB-4149
>                 URL: https://issues.apache.org/jira/browse/CB-4149
>             Project: Apache Cordova
>          Issue Type: Bug
>          Components: CordovaJS
>    Affects Versions: Master, 2.9.0
>         Environment: Windows 7 Enterprise
>            Reporter: Angela Fowler
>            Assignee: Filip Maj
>         Attachments: npm-debug.log
>
>
> 1. Trying to run the default tasks causes an error :
> c:\development\cordova-2.9.0\cordova-js>grunt
> Running "cordovajs:android" (cordovajs) task
> Fatal error: Error: Command failed: The system cannot find the path specified.
> 2. The README file refers to the old Jake tasks e.g. build
> "Then from the repository root run:
>     grunt
> This will run the `build`, `hint` and `test` tasks by default."
> According to grunt --help 
> Available tasks
>           cordovajs  Packages cordova.js *
>                test  Runs test in node
>               btest  Runs tests in the browser
>  complainwhitespace  Complain about what fixwhitespace would fix
>       fixwhitespace  Converts tabs to four spaces, eliminates trailing white
>                      space, converts newlines to proper form - enforcing style
>                      guide ftw!
>               clean  Clean files and folders. *
>              jshint  Validate files with JSHint. *
>             default  Alias for "cordovajs", "complainwhitespace", "test" 
> tasks.

--
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