How can I fix the following problem?
我该如何解决以下问题?
aaa@aaa $ bower install bower.json
bower bower.json#* cached git://github.com/Kalitte/app-states.git#0.6.9
bower bower.json#* validate 0.6.9 against git://github.com/Kalitte/app-states.git#*
bower webcomponentsjs#~0.5.4 cached git://github.com/Polymer/webcomponentsjs.git#0.5.5
bower webcomponentsjs#~0.5.4 validate 0.5.5 against git://github.com/Polymer/webcomponentsjs.git#~0.5.4
bower ENOTFOUND Package App States=bower.json not found
bower ENOTFOUND Package App States=bower.json not found
凉亭ENOTFOUND包App州=未找到bower.json
2 个解决方案
#1
35
I don't know how or at what point this happened, but it happened to me and if you look inside your bower_components
folder there maybe a folder called App States
. I deleted this folder and I was able to do an install.
我不知道这是怎么发生的,或者发生了什么,但它发生在我身上,如果你看看你的bower_components文件夹,可能会有一个名为App States的文件夹。我删除了这个文件夹,我能够安装。
#2
4
You have your bower config in bower.json file, right? You don't give the file as argument, it messes like you show.
你在bower.json文件中有你的bower配置,对吗?你没有把文件作为参数,它就像你展示的那样混乱。
So, type in the folder that holds the bower.json file only
因此,键入仅包含bower.json文件的文件夹
bower install
That command will find the bower.json for you automatically.
该命令将自动为您找到bower.json。
#1
35
I don't know how or at what point this happened, but it happened to me and if you look inside your bower_components
folder there maybe a folder called App States
. I deleted this folder and I was able to do an install.
我不知道这是怎么发生的,或者发生了什么,但它发生在我身上,如果你看看你的bower_components文件夹,可能会有一个名为App States的文件夹。我删除了这个文件夹,我能够安装。
#2
4
You have your bower config in bower.json file, right? You don't give the file as argument, it messes like you show.
你在bower.json文件中有你的bower配置,对吗?你没有把文件作为参数,它就像你展示的那样混乱。
So, type in the folder that holds the bower.json file only
因此,键入仅包含bower.json文件的文件夹
bower install
That command will find the bower.json for you automatically.
该命令将自动为您找到bower.json。