如何修复 "bower ENOTFOUND" 错误

24

我正在尝试在VPS上安装 https://github.com/catarse/catarse 脚本(在我的本地机器上运行正常),当我输入命令 bower install 时出现错误:

bower checkout      catarse_admin#master
bower resolved      https://github.com/catarse/catarse_admin.git#3151581f33
bower ENOTFOUND     Package option not found

bower.json

{
  "name": "catarse",
  "version": "1.0.0",
  "homepage": "https://github.com/catarse/catarse",
  "description": "The first open source crowdfunding platform for creative projects in the world!",
  "license": "MIT",
  "ignore": [
    "**/.*",
    "node_modules",
    "bower_components",
    "vendor/assets/components",
    "test",
    "tests"
  ],
  "dependencies": {
    "jquery": "~2.1.4",
    "backbone": "~1.2.0",
    "underscore": "~1.8.3",
    "jquery-sticky": "~1.0.1",
    "jquery-smooth-scroll": "~1.5.5",
    "jquery-typewatch": "~2.2.1",
    "store": "~2.3.0",
    "jQuery-Mask-Plugin": "~1.11.4",
    "jquery-ui": "~1.11.4",
    "jquery-ujs": "~1.0.3",
    "jquery.fixedmask": "~1.0.0",
    "mithril": "~0.2.0",
    "catarse_admin": "https://github.com/catarse/catarse_admin.git#master"
  }
}

7
哈哈!我犯了同样的错误 ;) - Ari G.
1个回答

81

好尴尬...我误输入了bower install --allow-root option而非正确的bower install --allow-root


3
谢谢。我犯了同样的错误。 - levi
3
我完全做了同样的事情。很高兴这个答案在这里。 - aadu
3
哈哈,我也一样!谢谢你的回答! - Elias
3
天啊,我也是这样做的,感到很羞愧,我这么快就进来了,却没有先自己想明白。 - vdegenne
2
复制粘贴驱动开发 :-) 我也是 - Stan Reshetnyk
哦,不好意思,我也是。非常感谢。 - Ayeshmantha Perera

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接