angular-phonecat
angular-phonecat copied to clipboard
bower_components fails with 404 error
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"
It sounds like bower dependencies have not been installed. What is the output of npm install?
I have the same issue, dependencies are all installed and in the right place
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]
@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?
Just a 404 error. I was only able to fix it by throwing bower_components into the app directory
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
The step tags however haven't been adjusted to reflect that
EDIT: Ignore me, I haven't been copying my dot files over