当我在PhoneCat教程应用程序中运行步骤7时,它出错... [英] when I run the step-7 in PhoneCat Tutorial App ,it got error....
本文介绍了当我在PhoneCat教程应用程序中运行步骤7时,它出错...的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好!
我正在使用官方的 PhoneCat教程应用学习AngularJS。
虽然从步骤1到步骤6没问题,但是当我运行步骤7时,它出错了。
我键入: npm start
Hello!
I am learning AngularJS with official's PhoneCat Tutorial App.
although from step-1 to step-6 is alright,
but when I run the step-7 ,it got error.
I type : npm start
C:\me\angular-phonecat>npm start
> angular-phonecat@0.0.0 prestart C:\me\angular-phonecat
> npm install
npm WARN package.json karma-chrome-launcher@0.1.4 No README data
-
> angular-phonecat@0.0.0 postinstall C:\me\angular-phonecat
> bower install
bower cached git://github.com/angular/bower-angular-route.git#1.2.26
bower validate 1.2.26 against git://github.com/angular/bower-angular-route
git#~1.2.x
git://github.com/angular/bower-angular.git#1.2.26
bower validate 1.2.26 against git://github.com/angular/bower-angular.git#1
2.26
bower cached git://github.com/angular/bower-angular.git#1.2.23
bower validate 1.2.23 against git://github.com/angular/bower-angular.git#1
2.23
bower ECONFLICT / Unable to find suitable version for angular
npm ERR! angular-phonecat@0.0.0 postinstall: `bower install`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-phonecat@0.0.0 postinstall script.
npm ERR! This is most likely a problem with the angular-phonecat package,
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-phonecat
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\no
ejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\me\angular-phonecat
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\me\angular-phonecat\npm-debug.log
npm ERR! not ok code 0
任何人都可以帮助我吗?thx~
Can anyone help me?thx~
推荐答案
使用angular:1.4.3 在bower.json文件中,而不是angular:1.4.x。
Use "angular:1.4.3" in the bower.json file instead of "angular:1.4.x".
这篇关于当我在PhoneCat教程应用程序中运行步骤7时,它出错...的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文