Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

add troubleshoot.rst to track some common errors and solutions. #225

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
language: node_js
node_js:
- "0.10"

# let's give a try.

before_script:
- export DISPLAY=:99.0
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,10 @@ along with a CI service (in Jenkins) hosted that will run unit and end to end te

For more information on AngularJS please check out http://angularjs.org/

## Troubleshooting

Check [troubleshoot.rst](troubleshoot.rst) for common errors and solutions.

[git]: http://git-scm.com/
[bower]: http://bower.io
[npm]: https://www.npmjs.org/
Expand All @@ -286,4 +290,4 @@ For more information on AngularJS please check out http://angularjs.org/
[jasmine]: http://pivotal.github.com/jasmine/
[karma]: http://karma-runner.github.io
[travis]: https://travis-ci.org/
[http-server]: https://github.com/nodeapps/http-server
[http-server]: https://github.com/nodeapps/http-server
46 changes: 46 additions & 0 deletions troubleshoot.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
Tracking errors and solutions for the angular-seed project.

fatal: unable to connect to github.com
--------------------------------------

Here are the details error message you may see
when you try to execute **bower install** ::

> bower install

Additional error details:
fatal: unable to connect to github.com:
github.com[0: 192.30.252.130]: errno=Connection refused

npm ERR! [email protected] postinstall: `bower install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is most likely a problem with the angular-seed package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! bower install
npm ERR! You can get their info via:
npm ERR! npm owner ls angular-seed
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 2.6.18-128.el5
npm ERR! command "/usr/opspedia/xampp/rd/cfgrepo/sample/nodejs/parts/nodejs-build/bin/node" "/usr/opspedia/xampp/rd/cfgrepo/sample/nodejs/parts/nodejs-build/bin/npm" "install"
npm ERR! cwd /usr/opspedia/xampp/rd/angular-seed
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.24
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /usr/opspedia/xampp/rd/angular-seed/npm-debug.log
npm ERR! not ok code 0

bower is trying to use **git** to fetch some packages
directly from github.com.
By default, git will use **git://** protocol.
In my case here, my corporation's firewall blocked that protocol.
The easy solution is telling **git** to use **https://** instead of
**git://**.
Here is git config::

$ cd angular-seed
$ git config url."https://".insteadof git://