Bower leaves /tmp/bower after a 'bower install', owned by the current user. If a subsequent user attempts a 'bower install', they get a permission error as they cannot write to /tmp/bower.
Ideally, bower should rmdir /tmp/bower on completion of a build.
It would also be nice if it checked the ownership of /tmp/bower on an bower install, and either failed early or attempted to chown it (since the permissions of /tmp may allow this)
This was fixed in bower 1.1.1, are you using an old version of bower? See: #743
I'm still getting this error on bower 1.1.2.
Error: EACCES, rename '/tmp/bower/jquery-5863-GeAJkM'
Bower version: 1.1.2
Node version: 0.10.13
OS: Linux 3.5.0-37-generic x64
After manually clearing caches (i.e: deleting /tmp/bower, ~/.bower/cache and ~/.cache/bower) it started working.
The same error persists in bower 1.2.8
Bower version: 1.2.8
Node version: 0.10.22
OS: Linux 3.8.0-29-generic x64
@GuyWithAfro your suggestion worked.. works fine after manually clearing ~/.cache/bower
'@GuyWithAfro your suggestion worked.. works fine after manually clearing ~/.cache/bower'
@koustuvsinha where is those folder? I can see it how to cleat that cache bower
I was having this issue with bower 1.3.12 and deleting ~/.cache/bower worked for me as well.
Bower version: 1.4.1, deleting ~/.cache/bower worked. Thanks @GuyWithAfro!
I had a crusty ~/.cache/bower as well, with root ownership! Removing that directory fixed me.