欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

Failed to run task: 'bower --allow-root install --offline' failed.

程序员文章站 2024-03-09 10:30:29
...

编译zeppelin遇到标题所述问题.

解决办法:

I was getting the same problem here, and this answer is just a guide, for those who are getting the same error: The maven output was similar to yours:

[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.25:bower (bower install) on project zeppelin-web: Failed to run task: 'bower --allow-root install' failed. (error code 1) -> [Help 1]

but going up a little bit it showed:

[ERROR] bower ECONFLICT Unable to find suitable version for angular

This means that bower was been executed but it couldn't choose between some available angular versions. To fix that I have gone to /zeppeling-root-folder/zeppelin-web and executed

./bower install

At the end of bower install it asked me to choose between one of the available angular versions, which I choose 1.5.0, after it just run a

npm install [email protected]   

内容来自 :http://www.itkeyword.com/doc/7017258402628137x195/failed-to-run-task-bower-allow-root-install-failed