我一直在使用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
文件?)時遺漏了文件 - 因此,當我克隆時,我沒有得到所需的所有文件 - 有任何補救措施的建議?