"Error: Cannot find where you keep your Bower packages. Use --force to continue" 발생 시 대응 방법

2016. 9. 7. 11:24서버 프로그래밍

angular.js 프로젝트의 clone을 받아서 grunt로 빌드하고 grunt serve를 실행하니 "Error: Cannot find where you keep your Bower packages. Use --force to continue" 라는 Warning이 뜬다.


stackoverflow에서 관련 부분을 찾아서 조치해봤으나 여전히 안된다.


http://stackoverflow.com/questions/31578794/error-cannot-find-where-you-keep-your-bower-packages-use-force-to-continue


npm install --global yo bower grunt-cli 

npm install -g generator-angular


결국, 해당 프로젝트에서 bower install을 해주지 않아서 발생한 문제였다. -_-;;;


http://stackoverflow.com/questions/22367837/what-is-causing-grunt-serve-to-throw-no-bower-components-found


Confusingly, the grunt-bower-install task that comes with angular-fullstack doesn't install bower components. It doesn't install anything. This error is trying to let you know that it can't find the bower_components directly, so it can't do its thing.

To fix the issue, run bower install.

If you don't have Bower installed, run npm install -g bower first.


이후에는 무사히 실행 완료!