==> default: TASK: [edxapp | Install edx-platform npm dependencies] ************************
==> default: failed: [localhost] => {"changed": true, "cmd": "npm install ", "delta": "0:00:02.596228", "end": "2014-10-25 20:10:23.201682", "item": "", "rc": 255, "start": "2014-10-25 20:10:20.605454"}
==> default: stderr: npm WARN package.json edx@0.1.0 No repository field.
==> default: npm ERR! Error: UNKNOWN, symlink '../coffee-script/bin/coffee'
==> default: npm ERR! If you need help, you may report this *entire* log,
==> default: npm ERR! including the npm and node versions, at:
==> default: npm ERR! <http://github.com/npm/npm/issues>
==> default:
==> default: npm ERR! System Linux 3.2.0-23-generic
==> default: npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
==> default: npm ERR! cwd /edx/app/edxapp/edx-platform
==> default: npm ERR! node -v v0.10.31
==> default: npm ERR! npm -v 1.4.23
==> default: npm ERR! path ../coffee-script/bin/coffee
==> default: npm ERR! code UNKNOWN
==> default: npm ERR! errno -1
==> default: npm ERR!
==> default: npm ERR! Additional logging details can be found in:
==> default: npm ERR! /edx/app/edxapp/edx-platform/npm-debug.log
==> default: npm ERR! not ok code 0
==> default:
==> default: FATAL: all hosts have already failed -- aborting
==> default:
==> default: PLAY RECAP ********************************************************************
==> default: to retry, use: --limit @/root/vagrant-devstack.retry
==> default: localhost : ok=21 changed=7 unreachable=0 failed=1
git rm --cached -r . && git reset --hard
git config --global alias.add-symlink '!__git_add_symlink(){ dst=$(echo "$2")/../$(echo "$1"); if [ -e "$dst" ]; then hash=$(echo "$1" | git hash-object -w --stdin); git update-index --add --cacheinfo 120000 "$hash" "$2"; git checkout -- "$2"; else echo "ERROR: Target $dst does not exist!"; echo " Not creating invalid symlink."; fi; }; __git_add_symlink "$1" "$2"'
git config --global alias.rm-symlink '!__git_rm_symlink(){ git checkout -- "$1"; link=$(echo "$1"); POS=$'\''/'\''; DOS=$'\''\\\\'\''; doslink=${link//$POS/$DOS}; dest=$(dirname "$link")/$(cat "$link"); dosdest=${dest//$POS/$DOS}; if [ -f "$dest" ]; then rm -f "$link"; cmd //C mklink //H "$doslink" "$dosdest"; elif [ -d "$dest" ]; then rm -f "$link"; cmd //C mklink //J "$doslink" "$dosdest"; else echo "ERROR: Something went wrong when processing $1 . . ."; echo " $dest may not actually exist as a valid target."; fi; }; __git_rm_symlink "$1"'
git config --global alias.rm-symlinks '!__git_rm_symlinks(){ for symlink in `git ls-files -s | grep -E "^120000" | cut -f2`; do git rm-symlink "$symlink"; git update-index --assume-unchanged "$symlink"; done; }; __git_rm_symlinks'
git config --global alias.checkout-symlinks '!__git_checkout_symlinks(){ POS=$'\''/'\''; DOS=$'\''\\\\'\''; for symlink in `git ls-files -s | grep -E "^120000" | cut -f2`; do git update-index --no-assume-unchanged "$symlink"; if [ -d "$symlink" ]; then dossymlink=${symlink//$POS/$DOS}; cmd //C rmdir //S //Q "$dossymlink"; fi; git checkout -- "$symlink"; echo "Restored git symlink $symlink <<===>> `cat $symlink`"; done; }; __git_checkout_symlinks'
git rm-symlinks
On Oct 26, 2014 3:28 PM, "Shravan P" <shrava...@gmail.com> wrote:
>
> Hello Yarko,
>
> Appreciate the help. I was using git for windows (version 1.9.4) for other projects and later I installed cygwin. I am able to run git commands from within cygwin and it uses the git I installed before. And as per this post: http://stackoverflow.com/questions/783906/git-under-windows-msys-or-cygwin So I dont think I need to install git from cygwin again.
I think you are missing a fundamental concept here: I _think_ you _do_ need to install the second git.
Here's why I believe that must be so:
The windows git executable was linked with the windows equivalent of POSIX file system library. This is why it generally just works in windows, regardless of which shell you use: windows' own cmd, or the cygwin bash.
On the other hand, the cygwin git is linked against cygwin's file system libraries, which are an adapted version (I'm expecting) of POSIX and/or gnu libraries, as they were modified by cygwin to work inside of windows. You will note in one of the links I sent (advanced) , that cygwin mentioned it makes symlinks which windows can use (will work in windows) but which do not contain as much information as windows created ones (notably icon/images, as I recall).
So I respectfully disagree.
I expect that, for easiest use, you _must_ install the cygwin git and use it from within cygwin bash. I expect everything done in this way will be much easier.
Best regards,
Yarko
>>>>>> ==> default: stderr: npm WARN package.json e...@0.1.0 No repository field.
...and I would add, install the entire package of command line tools with cygwin, add git, and then start fresh - from an empty directory, a new devstack attempt. The git chexked-out repos must be exclusively created and manipulated, throughout, by only the cygwin git, from the cygwin bash shell only.
==> default: TASK: [edxapp | checkout edx-platform repo into {{ edxapp_code_dir
}}] ********
==> default: failed: [localhost] => {"failed": true}
==> default: msg: Local modifications exist in repository (force=no).