Problem setting up angular-phonecat

1,655 views
Skip to first unread message

Nate Reed

unread,
Apr 2, 2014, 2:38:01 PM4/2/14
to ang...@googlegroups.com
I'm running into a problem with the initial setup, on the "npm install" command:

Nates-MacBook-Pro-2:angular-phonecat nate$ npm install
npm ERR! Error: No compatible version found: shelljs@'^0.2.6'
npm ERR! Valid install targets:
npm ERR! ["0.0.1","0.0.2","0.0.3","0.0.4","0.0.5","0.0.6","0.0.7","0.0.8","0.0.9","0.1.0","0.1.1","0.1.2","0.1.3","0.1.4","0.2.0","0.2.1","0.2.2","0.2.3","0.2.4","0.2.5","0.2.6","0.0.1-alpha1","0.0.2-pre1","0.0.4-pre1","0.0.5-pre1","0.0.5-pre2","0.0.5-pre3","0.0.5-pre4","0.0.6-pre1","0.0.6-pre2"]

....

Seems to have a problem with the version specification "^0.2.6." Changing this to "0.2.6" (and updating all the package specifications similarly in package.json) makes the install work, but it's not automatically invoking bower install. Manually invoking "bower install" is not putting the packages in the expected place (bower_components, which is not getting created).

I am running node 0.89.

Nate Reed

unread,
Apr 2, 2014, 2:43:00 PM4/2/14
to ang...@googlegroups.com
"npm install" actually fails this way when I make the package.json modifications above:

bower angular-mocks#~1.2.15             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: unable to connect to github.com:
github.com[0: 192.30.252.131]: errno=Connection refused

I'm guessing I shouldn't be mucking around with package.json but thought maybe that could get it working.

Now it seems to be a problem with this github repo?



--
You received this message because you are subscribed to a topic in the Google Groups "AngularJS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/angular/_lwxStCObC4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to angular+u...@googlegroups.com.
To post to this group, send email to ang...@googlegroups.com.
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Jing Teng

unread,
Apr 24, 2014, 10:02:01 AM4/24/14
to ang...@googlegroups.com
I am having the exact same issue

Nate Reed

unread,
Apr 24, 2014, 11:34:24 AM4/24/14
to ang...@googlegroups.com
The github error was caused by my company blocking the git port.

This is a common problem that is easily solved by configuring git to use https:

Alfred Huang

unread,
May 17, 2014, 11:17:09 PM5/17/14
to ang...@googlegroups.com

I am new to AngularJS, I try to npm intall Angular-phonecat, I get error as below.

D:\home\angular-phonecat>node --version
v0.10.8

D:\home\angular-phonecat>npm install
npm ERR! Error: No compatible version found: bower@'^1.3.1'
npm ERR! Valid install targets:
npm ERR! ["0.1.0","0.1.2","0.1.3","0.2.0","0.3.0","0.3.1","0.3.2","0.4.0","0.5.0","0.5.1","0.6.0","0.6.1","0.6.2","0.6.3","0.6
.4","0.6.5","0.6.6","0.6.7","0.6.8","0.7.0","0.7.1","0.8.0","0.8.1","0.8.2","0.8.3","0.8.4","0.8.5","0.8.6","0.9.0","0.9.1","0
.9.2","0.10.0","1.0.0","1.0.1","1.0.2","1.0.3","1.1.0","1.1.1","1.1.2","1.2.0","1.2.1","1.2.2","1.2.3","1.2.4","1.2.5","1.2.6"
,"1.2.7","1.2.8","1.3.0","1.3.1","1.3.2","1.3.3"]
npm ERR!     at installTargetsError (D:\tools\nodejs\node_modules\npm\lib\cache.js:709:10)
npm ERR!     at D:\tools\nodejs\node_modules\npm\lib\cache.js:631:10
npm ERR!     at saved (D:\tools\nodejs\node_modules\npm\node_modules\npm-registry-client\lib\get.js:138:7)
npm ERR!     at Object.oncomplete (fs.js:107:15)
npm ERR! If you need help, you may report this log at:
npm ERR! or email it to:
npm ERR!     <np...@googlegroups.com>

npm ERR! System Windows_NT 6.1.7601
npm ERR! command "D:\\tools\\nodejs\\\\node.exe" "D:\\tools\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd D:\home\angular-phonecat
npm ERR! node -v v0.10.8
npm ERR! npm -v 1.2.23
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     D:\home\angular-phonecat\npm-debug.log
npm ERR! not ok code 0

Could somebody advice how to fix it?

Alfred

Prajyot Rajigare

unread,
May 18, 2014, 3:10:49 PM5/18/14
to ang...@googlegroups.com
If you have problem to install npm, but yo want to run angular phonecat app , then you can use apache server to host app and run it directly in browser.



--
You received this message because you are subscribed to the Google Groups "AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to angular+u...@googlegroups.com.

Chaim Eliyah

unread,
Jun 29, 2014, 5:16:28 PM6/29/14
to ang...@googlegroups.com
I'm having the same problem and the git hack didn't work. It seems like maybe the shelljs version schema changed. I tried editing the config.json file to match one of the "valid install targets" and that didn't work.

Anyone else with this issue? Links?
Reply all
Reply to author
Forward
0 new messages