Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bower install packages EPERM rename error

clean windows 7 professional installation with node and git.

simple bower.json

{
  "name": "name123456",
  "version": "1.0.0",
  "dependencies": {
    "closure-compiler": "http://dl.google.com/closure-compiler/compiler-latest.zip"
  }
}

run bower install and it dies with permission error.

error

any idea why this happens? thank u.

like image 221
user2269215 Avatar asked Jan 24 '14 15:01

user2269215


2 Answers

It's a bug in bower 1.2.7 and up related to an upgraded zip library. A workaround is reinstall bower, as it will force an upgrade for the zip library:

bower cache clean
npm uninstall -g bower
npm install -g bower

For more information, see https://github.com/bower/bower/issues/991

Note that the above is not sufficient with an older version of Node (I tried 0.9.9). With latest version of node, it seems to be working fine again.

like image 167
kmkm Avatar answered Nov 17 '22 23:11

kmkm


If the accepted answer doesn't work for you, you can try the line below.

npm uninstall -g bower && npm update decompress-zip && npm install -g bower

Source - Github

like image 4
Adrian Enriquez Avatar answered Nov 17 '22 22:11

Adrian Enriquez