angular-phonecat icon indicating copy to clipboard operation
angular-phonecat copied to clipboard

bower_components fails with 404 error

Open BharathNatarajan opened this issue 8 years ago • 7 comments

Getting following error when running this app in my RHEL 7 instance, I am running this as a root user

[Thu Aug 24 2017 11:38:30 GMT-0400 (EDT)] "GET /" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" [Thu Aug 24 2017 11:38:30 GMT-0400 (EDT)] "GET /bower_components/bootstrap/dist/css/bootstrap.css" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" [Thu Aug 24 2017 11:38:30 GMT-0400 (EDT)] "GET /bower_components/bootstrap/dist/css/bootstrap.css" Error (404): "Not found" [Thu Aug 24 2017 11:38:30 GMT-0400 (EDT)] "GET /bower_components/angular/angular.js" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36" [Thu Aug 24 2017 11:38:30 GMT-0400 (EDT)] "GET /bower_components/angular/angular.js" Error (404): "Not found"

BharathNatarajan avatar Aug 24 '17 15:08 BharathNatarajan

It sounds like bower dependencies have not been installed. What is the output of npm install?

gkalpak avatar Aug 24 '17 18:08 gkalpak

I have the same issue, dependencies are all installed and in the right place

vasindaniil avatar Dec 13 '17 12:12 vasindaniil

The only issue that appears is the following:

npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: [email protected]

vasindaniil avatar Dec 13 '17 12:12 vasindaniil

@danikvsn, these warnings are OK. Just ignore them. So, are you saying that everything is installed as expected in /bower_components, but the server return 404? What are the exact errors you get?

gkalpak avatar Dec 13 '17 13:12 gkalpak

Just a 404 error. I was only able to fix it by throwing bower_components into the app directory

vasindaniil avatar Dec 13 '17 18:12 vasindaniil

If you are using the latest code from this repo, bower_components should already be inside app/:

https://github.com/angular/angular-phonecat/blob/0970e05d951d2d1485e5b6700032d9729b77d1df/.bowerrc#L2

gkalpak avatar Dec 13 '17 21:12 gkalpak

The step tags however haven't been adjusted to reflect that

EDIT: Ignore me, I haven't been copying my dot files over

vasindaniil avatar Dec 14 '17 06:12 vasindaniil