安装Ember出现错误的解决方法

时间:2022-04-14 07:04:03
执行>ember install, 出现下面的错误:

version: 0.2.1
EPERM, unlink 'C:\Users\jeffrey\AppData\Local\Temp\jeffrey-E5530-jeffrey\bower\e
mber-cli-test-loader-16004-P1G8TI\archive.tar.gz'
Error: EPERM, unlink 'C:\Users\jeffrey\AppData\Local\Temp\jeffrey-E5530-jeffrey\
bower\ember-cli-test-loader-16004-P1G8TI\archive.tar.gz'
    at Error (native)


来自*的解决方法:
http://*.com/questions/25244512/bower-eperm-unlink-error


I got the same error "EPERM, unlink" but with a different archive.
Running these commands resolved the issue for me:


npm uninstall -g bower
npm update decompress-zip
npm install -g bower
This link is where I saw to use those commands: https://github.com/bower/bower/issues/798 It is the updating of the decompress-zip that has resolved the issue for others as well.