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
清理缓存。
bower cache clean
Hopefully this will help someone else. I was getting this same error until I disabled my antivirus.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.