Open zhon opened 10 years ago
After uninstalling, and reinstalling, I got this when running "npm install" (it's possible I got it the first time, too and didn't notice):
npm ERR! peerinvalid The package karma does not satisfy its siblings' peerDependencies requirements! npm ERR! peerinvalid Peer grunt-karma@0.5.4 wants karma@~0.9.4 || ~0.10 npm ERR! peerinvalid Peer karma-jasmine@0.1.5 wants karma@>=0.9 npm ERR! peerinvalid Peer karma-chrome-launcher@0.1.2 wants karma@>=0.9.3 npm ERR! peerinvalid Peer karma-coffee-preprocessor@0.1.3 wants karma@>=0.9
npm ERR! System Windows_NT 6.1.7601 npm ERR! command "c:\Program Files\nodejs\node.exe" "c:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" npm ERR! cwd c:\dev\wisdom\wisdom-bot-kata-angular npm ERR! node -v v0.10.26 npm ERR! npm -v 1.4.3 npm ERR! code EPEERINVALID npm ERR! npm ERR! Additional logging details can be found in: npm ERR! c:\dev\wisdom\wisdom-bot-kata-angular\npm-debug.log npm ERR! not ok code 0
When running "bower install" I got farther after the reinstall, but still got this:
bower ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/angular/bower-angular-mocks.git", exit code of #128
Additional error details: fatal: write error: Invalid argument
In addition to the above errors, when I run grunt watch, I get the following errors:
Running "jshint:globals" (jshint) task
0 files linted. Please check your ignored files.
Running "less:build" (less) task
FileError: '../../vendor/bootstrap/less/variables.less' wasn't found in src/less/main.less on line 15, column 1: 14 // Core variables and mixins 15 @import "../../vendor/bootstrap/less/variables.less"; 16 @import "../../vendor/bootstrap/less/mixins.less"; Warning: Error compiling src/less/main.less Use --force to continue.
Aborted due to warnings.
I was able to run it anyhow using --force, but the following errors appeared in the console:
Chrome 33.0.1750 (Windows 7) ERROR Uncaught ReferenceError: angular is not defined at c:/dev/wisdom/wisdom-bot-kata-angular/build/templates-app.js:1 Chrome 33.0.1750 (Windows 7) ERROR Uncaught ReferenceError: angular is not defined at c:/dev/wisdom/wisdom-bot-kata-angular/build/templates-common.js:1 Chrome 33.0.1750 (Windows 7) ERROR Uncaught ReferenceError: angular is not defined at c:/dev/wisdom/wisdom-bot-kata-angular/src/app/about/about.js:1 Chrome 33.0.1750 (Windows 7) ERROR Uncaught ReferenceError: angular is not defined at c:/dev/wisdom/wisdom-bot-kata-angular/src/app/app.js:1 Chrome 33.0.1750 (Windows 7) ERROR Uncaught ReferenceError: angular is not defined
The first error has been fixed by updating grunt-karma
to version 0.8.0. You may have to uninstall grunt-karma, pull the repository and rerun npm install
Which version of angular are you using? It game me a choice and I choose 1.3.0-beta
The errors from less might be from running an older version of bootstrap.
So, I started from scratch (recloned the repo, deleted npm folder, reinstalled node) and with the upgrade to grunt-karma version 0.8, the first error did indeed go away. The other two issues still remain. As far as what version of angular I'm using, I'm not really sure how to check that (not sure where grunt puts that). It did not prompt me at all during the grunt install, like it did (apparently) for you. Here are the logs from the grunt install and it looks like it's asking for ~1.2.11:
bower not-cached git://github.com/angular/bower-angular-mocks.git#~1.3 bower resolve git://github.com/angular/bower-angular-mocks.git#~1.3 bower not-cached git://github.com/twbs/bootstrap.git#~3.1.1 bower resolve git://github.com/twbs/bootstrap.git#~3.1.1 bower not-cached git://github.com/angular-ui/bootstrap-bower.git#~0.10.0 bower resolve git://github.com/angular-ui/bootstrap-bower.git#~0.10.0 bower not-cached git://github.com/angular-ui/ui-router.git#0.2.7 bower resolve git://github.com/angular-ui/ui-router.git#0.2.7 bower not-cached git://github.com/cjohansen/Sinon.JS.git#~1.9 bower resolve git://github.com/cjohansen/Sinon.JS.git#~1.9 bower not-cached git://github.com/angular-ui/ui-utils.git#~0.1.0 bower resolve git://github.com/angular-ui/ui-utils.git#~0.1.0 bower not-cached git://github.com/jashkenas/underscore.git#~1.6 bower resolve git://github.com/jashkenas/underscore.git#~1.6 bower not-cached git://github.com/angular/bower-angular.git#~1.2.11 bower resolve git://github.com/angular/bower-angular.git#~1.2.11 bower download https://github.com/angular-ui/ui-utils/archive/v0.1.1.tar.gz bower extract angular-ui-utils#~0.1.0 archive.tar.gz bower resolved git://github.com/angular-ui/ui-utils.git#0.1.1 bower ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/angular/bower-angular-mocks.git", exit code of #128
Now I am wondering which version of git you have installed?
Some people have used the following to get around this issue:
git config --global url."https://".insteadOf git://
This would mess up my configuration of github on windows. It also might mess up your ability to push to the repository.
This error also shows up when github
is having a denial of service attack (like it was yesterday).
Ideas coming from here: https://github.com/bower/bower/issues/689
git version 1.7.9.msysgit.0
I am planning on having a zip file on a thumbdrive with everything in it so the student just unzips into a folder and can start work on the kata. I am making a temporary one up now.
Getting the error: $ bower ECMDERR Failed to execute "git ls-remote --tags --heads git://github.com/lodash/lodash.git", exit code of #128
@heldrida This is an early scratch project for https://github.com/zhon/angular-hogwarts-tdd-kata
As such, some libraries are out of date.
I had to uninstall nodejs, bower, and the npm directory.