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.
any idea why this happens? thank u.
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.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With