尝试使用 Bower 并使用它来安装 livestampjs 。 Livestamp 的依赖项为 momentjs但是通过bower install livestampjs安装livestamp并不是安装时刻。远程查看 livestamp Bower.json,它确实声明了依赖项,但本地缺少该文件(存在 .bower.json)。我在这里做错了什么还是这个包有问题?
这是 livestampjs 的 Bower.json
{
"name": "livestamp",
"version": "1.1.2",
"ignore": [],
"dependencies": {
"jquery": "*",
"moment": "*"
}
}
最佳答案
我之前评论过“是的,我想我是对的......如果你运行 bower info livestampjs
,你会看到缓存在 Bower 上的 json 文件的内容。没有列出依赖项。 bower info livestampjs
'...这可能是正确的,据我所知,唯一的解决方法是强制它使用 master 分支...
bower install git://github.com/mattbradley/livestampjs.git#master
这会按预期安装所有依赖项。
关于javascript - Bower 依赖项未安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23897578/