Error installing Bower (ERR! tar.unpack untar error)

天大地大妈咪最大 提交于 2019-12-01 18:36:58

Happened to me as well, clear cache!

npm cache clean

Please upgrade npm first then install bower

When running the command npm install -g mup on Yosemite 10.10.5 I got this error: tar.unpack untar error...

The npm cache clean didn't fix the issue. Putting sudo in front solved the problem and my npm install was successful.

Had this error for some time, too, and none of the solutions online worked for me. What did, however, was restarting the computer after installing a bunch of crap. :) Hope it helps somebody.

You can add sudo before npm install ,and it may work.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!