Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Still having Bower Issues #210

Closed
chriswhong opened this issue Dec 27, 2013 · 6 comments
Closed

Still having Bower Issues #210

chriswhong opened this issue Dec 27, 2013 · 6 comments

Comments

@chriswhong
Copy link

Hi all, I'm getting the same "no /lib directory" as many others. I've tried everything, cleared cache, run as sudo, added flags to the bower install to get around permissions, nothing seems to be working. I am cloning the repo fresh (so .bowerrc is definitely in there). Yesterday I had it running but with a blank page and 404s. Now it's not even doing that.

mean@0.1.2 postinstall /Users/chriswhong/Sites/mean
node node_modules/bower/bin/bower install

bower cached git://github.com/angular/bower-angular.git#1.2.6
bower validate 1.2.6 against git://github.com/angular/bower-angular.git#*
bower cached git://github.com/angular/bower-angular-resource.git#1.2.6
bower validate 1.2.6 against git://github.com/angular/bower-angular-resource.git#*
bower cached git://github.com/angular/bower-angular-cookies.git#1.2.6
bower validate 1.2.6 against git://github.com/angular/bower-angular-cookies.git#*
bower cached git://github.com/angular/bower-angular-mocks.git#1.2.6
bower validate 1.2.6 against git://github.com/angular/bower-angular-mocks.git#*
bower cached git://github.com/angular/bower-angular-route.git#1.2.6
bower validate 1.2.6 against git://github.com/angular/bower-angular-route.git#*
bower cached git://github.com/twbs/bootstrap.git#2.3.2
bower validate 2.3.2 against git://github.com/twbs/bootstrap.git#2.3.2
bower cached git://github.com/angular-ui/bootstrap-bower.git#0.7.0
bower validate 0.7.0 against git://github.com/angular-ui/bootstrap-bower.git#0.7.0
bower cached git://github.com/angular-ui/ui-utils.git#0.0.4
bower validate 0.0.4 against git://github.com/angular-ui/ui-utils.git#0.0.4
bower cached git://github.com/angular/bower-angular.git#1.2.6
bower validate 1.2.6 against git://github.com/angular/bower-angular.git#1.2.6
bower cached git://github.com/angular/bower-angular.git#1.2.6
bower validate 1.2.6 against git://github.com/angular/bower-angular.git#>=1
bower new version for git://github.com/angular/bower-angular.git#>=1
bower resolve git://github.com/angular/bower-angular.git#>=1
bower cached git://github.com/angular/bower-angular.git#1.2.6
bower validate 1.2.6 against git://github.com/angular/bower-angular.git#>= 1.0.2
bower new version for git://github.com/angular/bower-angular.git#>= 1.0.2
bower resolve git://github.com/angular/bower-angular.git#>= 1.0.2
bower download https://github.com/angular/bower-angular/archive/v1.2.7-build.2026+sha.7d6e5a2.tar.gz
bower download https://github.com/angular/bower-angular/archive/v1.2.7-build.2026+sha.7d6e5a2.tar.gz
bower cached git://github.com/components/jquery.git#2.0.3
bower validate 2.0.3 against git://github.com/components/jquery.git#>=1.8.0 <2.1.0
bower extract angular#>=1 archive.tar.gz
bower extract angular#>= 1.0.2 archive.tar.gz
bower EACCES EACCES, unlink '/Users/chriswhong/.cache/bower/packages/ef2188def21eb1bbd1f1792311942a53/1.2.7-build.2026%2Bsha.7d6e5a2/.bower.json'

Stack trace:
Error: EACCES, unlink '/Users/chriswhong/.cache/bower/packages/ef2188def21eb1bbd1f1792311942a53/1.2.7-build.2026%2Bsha.7d6e5a2/.bower.json'

Console trace:
Trace
at StandardRenderer.error (/Users/chriswhong/Sites/mean/node_modules/bower/lib/renderers/StandardRenderer.js:74:17)
at Logger.updateNotifier.packageName (/Users/chriswhong/Sites/mean/node_modules/bower/bin/bower:109:18)
at Logger.EventEmitter.emit (events.js:95:17)
at Logger.emit (/Users/chriswhong/Sites/mean/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39)
at /Users/chriswhong/Sites/mean/node_modules/bower/lib/commands/install.js:27:16
at _rejected (/Users/chriswhong/Sites/mean/node_modules/bower/node_modules/q/q.js:808:24)
at /Users/chriswhong/Sites/mean/node_modules/bower/node_modules/q/q.js:834:30
at Promise.when (/Users/chriswhong/Sites/mean/node_modules/bower/node_modules/q/q.js:1079:31)
at Promise.promise.promiseDispatch (/Users/chriswhong/Sites/mean/node_modules/bower/node_modules/q/q.js:752:41)
at /Users/chriswhong/Sites/mean/node_modules/bower/node_modules/q/q.js:574:44

System info:
Bower version: 1.2.8
Node version: 0.10.24
OS: Darwin 12.5.0 x64

npm ERR! mean@0.1.2 postinstall: node node_modules/bower/bin/bower install
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mean@0.1.2 postinstall script.
npm ERR! This is most likely a problem with the mean package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node node_modules/bower/bin/bower install
npm ERR! You can get their info via:
npm ERR! npm owner ls mean
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 12.5.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/chriswhong/Sites/mean
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.22
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/chriswhong/Sites/mean/npm-debug.log
npm ERR! not ok code 0
Chriss-MacBook-Pro-2:mean chriswhong$

@liorkesos
Copy link
Member

Currently its trying to write in to your bower cache directory in your
homedir (.cache/bower/..)
You should uld probably either remove it all together or change its
ownership to the user which will run the bower install.
Lior
On Dec 27, 2013 6:18 PM, "louiedog98" notifications@github.com wrote:

Hi all, I'm getting the same "no /lib directory" as many others. I've
tried everything, cleared cache, run as sudo, added flags to the bower
install to get around permissions, nothing seems to be working. I am
cloning the repo fresh (so .bowerrc is definitely in there). Yesterday I
had it running but with a blank page and 404s. Now it's not even doing that.

mean@0.1.2 postinstall /Users/chriswhong/Sites/mean
node node_modules/bower/bin/bower install

bower cached git://github.com/angular/bower-angular.git#1.2.6
bower validate 1.2.6 against git://github.com/angular/bower-angular.git#*
bower cached git://github.com/angular/bower-angular-resource.git#1.2.6
bower validate 1.2.6 against git://
github.com/angular/bower-angular-resource.git#*
bower cached git://github.com/angular/bower-angular-cookies.git#1.2.6
bower validate 1.2.6 against git://
github.com/angular/bower-angular-cookies.git#*
bower cached git://github.com/angular/bower-angular-mocks.git#1.2.6
bower validate 1.2.6 against git://
github.com/angular/bower-angular-mocks.git#*
bower cached git://github.com/angular/bower-angular-route.git#1.2.6
bower validate 1.2.6 against git://
github.com/angular/bower-angular-route.git#*
bower cached git://github.com/twbs/bootstrap.git#2.3.2
bower validate 2.3.2 against git://github.com/twbs/bootstrap.git#2.3.2
bower cached git://github.com/angular-ui/bootstrap-bower.git#0.7.0
bower validate 0.7.0 against git://
github.com/angular-ui/bootstrap-bower.git#0.7.0
bower cached git://github.com/angular-ui/ui-utils.git#0.0.4
bower validate 0.0.4 against git://
github.com/angular-ui/ui-utils.git#0.0.4
bower cached git://github.com/angular/bower-angular.git#1.2.6
bower validate 1.2.6 against git://
github.com/angular/bower-angular.git#1.2.6
bower cached git://github.com/angular/bower-angular.git#1.2.6
bower validate 1.2.6 against git://github.com/angular/bower-angular.git#

=1
bower new version for git://github.com/angular/bower-angular.git#>=1
bower resolve git://github.com/angular/bower-angular.git#>=1
bower cached git://github.com/angular/bower-angular.git#1.2.6
bower validate 1.2.6 against git://github.com/angular/bower-angular.git#>=
1.0.2
bower new version for git://github.com/angular/bower-angular.git#>= 1.0.2
bower resolve git://github.com/angular/bower-angular.git#>= 1.0.2
bower download
https://github.com/angular/bower-angular/archive/v1.2.7-build.2026+sha.7d6e5a2.tar.gz
bower download
https://github.com/angular/bower-angular/archive/v1.2.7-build.2026+sha.7d6e5a2.tar.gz
bower cached git://github.com/components/jquery.git#2.0.3
bower validate 2.0.3 against git://github.com/components/jquery.git#>=1.8.0
bower extract angular#>=1 archive.tar.gz
bower extract angular#>= 1.0.2 archive.tar.gz
bower EACCES EACCES, unlink
'/Users/chriswhong/.cache/bower/packages/ef2188def21eb1bbd1f1792311942a53/1.2.7-build.2026%2Bsha.7d6e5a2/.bower.json'

Stack trace:
Error: EACCES, unlink
'/Users/chriswhong/.cache/bower/packages/ef2188def21eb1bbd1f1792311942a53/1.2.7-build.2026%2Bsha.7d6e5a2/.bower.json'

Console trace:
Trace
at StandardRenderer.error
(/Users/chriswhong/Sites/mean/node_modules/bower/lib/renderers/StandardRenderer.js:74:17)
at Logger.updateNotifier.packageName
(/Users/chriswhong/Sites/mean/node_modules/bower/bin/bower:109:18)
at Logger.EventEmitter.emit (events.js:95:17)
at Logger.emit
(/Users/chriswhong/Sites/mean/node_modules/bower/node_modules/bower-logger/lib/Logger.js:29:39)
at
/Users/chriswhong/Sites/mean/node_modules/bower/lib/commands/install.js:27:16
at rejected (/Users/chriswhong/Sites/mean/node
modules/bower/node_modules/q/q.js:808:24)
at
/Users/chriswhong/Sites/mean/node_modules/bower/node_modules/q/q.js:834:30
at Promise.when
(/Users/chriswhong/Sites/mean/node_modules/bower/node_modules/q/q.js:1079:31)
at Promise.promise.promiseDispatch
(/Users/chriswhong/Sites/mean/node_modules/bower/node_modules/q/q.js:752:41)
at
/Users/chriswhong/Sites/mean/node_modules/bower/node_modules/q/q.js:574:44

System info:
Bower version: 1.2.8
Node version: 0.10.24
OS: Darwin 12.5.0 x64

npm ERR! mean@0.1.2 postinstall: node node_modules/bower/bin/bower install
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mean@0.1.2 postinstall script.
npm ERR! This is most likely a problem with the mean package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node node_modules/bower/bin/bower install
npm ERR! You can get their info via:
npm ERR! npm owner ls mean
npm ERR! There is likely additional logging output above.
npm ERR! System Darwin 12.5.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/chriswhong/Sites/mean
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.22
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/chriswhong/Sites/mean/npm-debug.log
npm ERR! not ok code 0
Chriss-MacBook-Pro-2:mean chriswhong$


Reply to this email directly or view it on GitHubhttps://github.com//issues/210
.

@chriswhong
Copy link
Author

"either remove it all together or change its ownership to the user " Do you mean remove Bower all together? Change what's ownership to user? Bower or the directory? Sorry, I'm a n00b at this and need it spelled out for me. Thanks so much.

EDIT: did chown -R .cache

Problem solved, no more 404s!

@liorkesos
Copy link
Member

change the permissions or remove the cache directory.
Good luck
Lior
On Dec 27, 2013 9:09 PM, "louiedog98" notifications@github.com wrote:

"either remove it all together or change its ownership to the user " Do
you mean remove Bower all together? Change what's ownership to user? Bower
or the directory? Sorry, I'm a n00b at this and need it spelled out for me.
Thanks so much.


Reply to this email directly or view it on GitHubhttps://github.com//issues/210#issuecomment-31275622
.

@necroscope
Copy link

What is?

On Dec 28, 2013, at 1:01 AM, Lior Kesos notifications@github.com wrote:

change the permissions or remove the cache directory.
Good luck
Lior
On Dec 27, 2013 9:09 PM, "louiedog98" notifications@github.com wrote:

"either remove it all together or change its ownership to the user " Do
you mean remove Bower all together? Change what's ownership to user? Bower
or the directory? Sorry, I'm a n00b at this and need it spelled out for me.
Thanks so much.


Reply to this email directly or view it on GitHubhttps://github.com//issues/210#issuecomment-31275622
.


Reply to this email directly or view it on GitHub.

@johnpattison
Copy link

bower

Make sure the dot file ".bowerrc" file is copied if your moving files to another directory. You'll have to run the following command to view hidden files first.

$ defaults write com.apple.Finder AppleShowAllFiles TRUE

@liorkesos
Copy link
Member

This is cool, Added it to the faq, closing issue.

sarareisner pushed a commit to liorkesos/mean that referenced this issue Mar 28, 2017
* First commit

* added UglifyJs Plugin

* added routes

* dummy commit

* (retro)

* Update app.browser.module.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants