老師您好,我在安裝generator-angular的時(shí)候遇到問題
我用的是MacBook,當(dāng)我執(zhí)行:
sudo npm install -g generator-angular
的時(shí)候,就會(huì)出現(xiàn)下面的錯(cuò)誤提示:
npm WARN peerDependencies The peer dependency generator-karma@>=0.9.0 included from generator-angular will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency?
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency yo@>=1.0.0 included from generator-angular will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency?
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
我去google了一下,有些人也碰到了和我差不多的問題,有些是uninstall 了generatro-karma,我也試了試,結(jié)果依然不行。
老師,您也碰到過類似的問題嗎,您是如果解決的?
謝謝。
2015-05-06
這是在提醒?peerDependencies 的一個(gè)變動(dòng),npm 1 & 2 會(huì)自動(dòng)安裝,npm 3 不再自動(dòng)安裝。目前不用管,可以參考我翻譯的一篇文章?Peer Dependencies。?
2016-07-26
執(zhí)行np install -g generator-karma一直報(bào)錯(cuò),用國內(nèi)的鏡像都不行!
主要是因?yàn)閥o angular 項(xiàng)目時(shí)會(huì)報(bào)錯(cuò): You don't have a generator with the name karma:app installed.
崩潰?。?!
2015-12-29
是呀相當(dāng)折騰,我就是想用個(gè)angular,研究yeoman的環(huán)境就折騰了一個(gè)月
2015-12-22
感覺用yeoman構(gòu)建還是挺折騰的
2015-12-22
我安裝了karma@1.0.1,通過:npm install -g generator-karma
但是,然并卵……
2015-12-20
我也發(fā)現(xiàn)這個(gè)問題了, after installed angular comparator , can not generate project , the way to solve this problem is that we need to install karma using this command "npm install -g generator-karma"
2015-10-20
用yo --version
2015-07-24
我 yo -v 不顯示版本
2015-04-28
好吧,統(tǒng)一回復(fù),我在github上也問了同樣的問題,那個(gè)超帥的芬蘭小哥告訴我說,這個(gè)問題可以忽略,因?yàn)檫@個(gè)只是提示,不算錯(cuò)誤,所以不理他就好了。
2015-04-23
怎么解決