-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Angular Hangs #505
Comments
Its not actual hanging there. Bower is running at the same time and it has a prompt which gets hidden in the install. |
I've seen the same behavior. If you hit return and then enter 1 at the prompt, it appears to continue successfully. In addition to the spot where @gojohnnygo saw the hang, I've also seen it hang at:
If I hit return, I receive the following prompt, which I answer with 1 and the angular generator continues.
|
I had this same problem. matthewrankin's instructions worked for me. Thank you! |
The suggestion @matthewrankin worked for me |
Works on Mac but hangs on Windows |
Hangs on this line on windows I tried clicking return but to no avail. Like I said it works on Mac so not sure what to say
|
Happens to me as well, on ubuntu 13.04. |
The prompt is lost in the log. I think I need to change the way the dependencies are listed in the bower.json package so it doesn't prompt. |
Tested this with 6 different Windows setups and confirmed that the same issue is experienced there. @eddiemonge do we think we could explore whether changing the dep order fixes this this week? :) Atm, lots of users seem to think the generator is busted as a result of it. |
I'll get this worked out. Worst case I copy the bower.json from my production that has additional, not idea fields, but fixes the issues. Might also be the best case as well ... gotta test though |
Please test the master branch as the issue should be fixed now. If its not, then I'll have to add a manual resolution section to the bower.json but in testing, bower stripped that part off. Should be fine now though. |
Thanks @eddiemonge. I am however still currently experiencing this issue. Can anyone else confirm? |
@mattcrum It's working for me. I'm running the v0.6.0. |
I am still seeing this issue as well. It hangs at the following line, and when I hit enter, it just takes me back to the command prompt, and it seems the project has not been fully installed (there is no bower_components folder) karma-ng-html2js-preprocessor@0.1.0 node_modules/karma-ng-html2js-preprocessor |
@genepaularch what version of the generator are you using? can you gist the full output from the install logs? |
@eddiemonge, I'm assuming I am using the latest version, as I just installed it today (npm install -g generator-angular). I'm on Windows 7, 64-bit. Forgive my ignorance, but how would I gist the install log output? |
run Copy everything after you run |
Here you go. yo tells me the version is 0.7.1. And here's my log output: |
@genepaularch here is your problem:
In your browser, try going to https://bower.herokuapp.com/packages/jquery and see if there is a problem with the certificate. its always windows causing problems heh |
Visiting that URL in a browser gives me a verified certificate. I'm sure it's probably the firewall I'm behind here at work, but I know I'd run into this on my computer at home as well. I'll try running it tonight and see if the log shows anything different. Thanks for trying to help! |
Ok, tried it from home, and I remember now the issue I've been seeing. It is this: bower ECMDERR Failed to execute "git ls-remote --tags --heads git://github Additional error details: I thought I saw something about changing git:// to https://, but I saw other places in the output where it was able to use git:// urls just fine. But if that is what I need to do, I'm not exactly sure how to do it. |
Ok, I got it working. So here's the steps I took for anyone else finding this:
Then re-ran the generator from a clean directory. It finally ran completely. |
worked perfect on Tuesday, doesn't want to work today (Thursday), cleaned npm & bower cache... seems to work again, thanks for the tips genepaul, bummer it's flaky on windows. |
Hey @eddiemonge did you ever identify what specifically in your bower.json caused the issue? I have a custom angular yo generator and it's hanging on grunt-contrib-imagemin as well. I can CTRL-C out of it and then run bower install and it works fine, but I would rather not use that work around. |
@genepaul that means your firewall or network is blocking the git over ssh connection. that is a separate issue. @scottsword it was that the angular team changed how they did releases and added pre-release builds. Bower didn't know how to handle that. Im not sure if its been fixed yet. I used exact versions of angular in the mean time, as in |
Heppening to me also, it hangs at the same line grunt-contrib-imagemin@0.3.0 node_modules/grunt-contrib-imagemin hitting return does nothing in my case |
@anfebotero can you post the full out put of the install log to gist.github.com? |
I had this happen on a clean install of everything (npm, yeoman, bower, etc). Running OS X 10.9 (Mavericks). Angular version is 0.7.1. See gist here: https://gist.github.com/jbinto/9620922 It turns out Bower is asking whether to allow anonymous usage tracking, but this prompt never makes it to the screen until after you press ENTER. "'May bower anonymously report usage statistics to improve the tool over time? (Y/n)" This is being discussed over on the bower issues tracker and seems to have broken CI for a lot of people: bower/bower#1102 |
I met with this issue when I tried to |
This is still happening to me. OSX 10.9, latest everything. Hitting enter to get a prompt does not work. Any other workarounds? |
@Sector7B what is the full output from your install? |
This happened to me when installing a custom generator, and hitting enter seemed to work. Bower was indeed prompting for input. |
@eddiemonge it was exactly the same as @anfebotero experience. |
I am having the same experience as @xsuii I changed the bower.json template and now it hangs on bootstrap#3.0.3 app\bower_components\bootstrap |
Just had the same problem with mac 10.9.2, latest of everything. Hitting enter worked for me though... |
Still happening, had to find this via Google and hit enter to "Allow sending anonymous usage." Prompt was hidden until I hit enter. |
10.9.2, latest of everything, still getting the problem on the same line, hitting enter just takes me back to the command prompt. Searching for other work arounds... |
After the hang, hitting enter took me to the command prompt, and I ran the |
Having the same problem now. Hitting enter and y made it continue. |
Same here. Hitting enter works. Without it,
|
yo v1.0.5
generator-angular v0.6.0
Looks like the angular generator is hanging at this block.
Here's a gist from the output of
yo --version && echo $PATH $NODE_PATH && node -e 'console.log(process.platform, process.versions)' && cat Gruntfile.js
https://gist.github.com/gojohnnygo/d5010f25f68a70385f67
Is this happening to anyone else?
The text was updated successfully, but these errors were encountered: