2014-05-06 40 views
0

我一直在使用this種子,而且我之前沒有發現過這個錯誤,而且我發出了無數次的grunt serve命令 - 我現在只是現在得到這個錯誤。我所做的唯一可能導致它的是我刪除了目錄中的項目 - 並使用git clone克隆我正在存儲我的項目的回購,因爲我想回復到舊版本。現在,我得到這個錯誤:運行「grunt serve」時發生grunt錯誤,發生器-angular-fullstack種子

Cannot find where you keep your Bower packages. 

We tried looking for a `.bowerrc` file, but couldn't find a custom 
`directory` property defined. We then tried `bower_components`, but 
it looks like that doesn't exist either. As a last resort, we tried 
the pre-1.0 `components` directory, but that also couldn't be found. 

Unfortunately, we can't proceed without knowing where the Bower 
packages you have installed are. 

Fatal error: No Bower components found. 

我有一個bower_components目錄(應該是) - 我不知道爲什麼沒有被人看到它。我在堆棧中發現了this - 但它似乎並不是我的問題,我嘗試運行bower install - 它沒有拋出任何錯誤,但它也沒有解決問題。謝謝。

UPDATE

我想我意識到發生了什麼,但我不知道該怎麼辦纔好(除從種子重新安裝並複製了我所有的代碼)。我認爲種子(默認情況下)在推送到git(可能是.bowerrc文件?)時遺漏了文件 - 因此,當我克隆時,我沒有得到所需的所有文件 - 有任何補救措施的建議?

回答

0

我的建議是運行

npm update 

希望你會看到它爲你安裝的一切。

遵循了一個

bower install 

只要你的回購在IT-的bower.json文件雖然像我這樣就可以解決您的問題,您可以在默認的咕嚕被發現(測試)的karma.conf.js丟失。

,如果你需要它的.bowerrc的內容都只是

{ 
    "directory": "app/bower_components" 
}