为什么wiredep一直在移除我的bower组件
Why does wiredep keep removing my bower component?
每当wiredep grunt任务运行时,它都会删除socketio。
~/.g/p/g/g/s/b/f/brody % git diff
diff --git a/app/app/index.html b/app/app/index.html
index 9abc970..f9dd603 100644
--- a/app/app/index.html
+++ b/app/app/index.html
@@ -65,7 +65,6 @@
<!-- build:js(.) scripts/vendor.js -->
<!-- bower:js -->
<script src="bower_components/jquery/dist/jquery.js"></script>
- <script src="bower_components/socket.io-client/socket.io.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="bower_components/bootstrap/dist/js/bootstrap.js"></script>
<script src="bower_components/angular-animate/angular-animate.js"></script>
diff --git a/app/test/karma.conf.js b/app/test/karma.conf.js
index 710f26a..ab51cc6 100644
--- a/app/test/karma.conf.js
+++ b/app/test/karma.conf.js
@@ -20,7 +20,6 @@ module.exports = function(config) {
files: [
// bower:js
'bower_components/jquery/dist/jquery.js',
- 'bower_components/socket.io-client/socket.io.js',
'bower_components/angular/angular.js',
'bower_components/bootstrap/dist/js/bootstrap.js',
'bower_components/angular-animate/angular-animate.js',
~/.g/p/g/g/s/b/f/brody %
我已经通过安装了socketio
bower install socket.io-client --save
包裹在我的bower.json
中
{
"name": "app",
"version": "0.0.0",
"dependencies": {
"socket.io-client": "~1.3.4",
"angular": "^1.3.0",
"bootstrap": "^3.2.0",
"angular-animate": "^1.3.0",
"angular-aria": "^1.3.0",
"angular-cookies": "^1.3.0",
"angular-messages": "^1.3.0",
"angular-resource": "^1.3.0",
"angular-route": "^1.3.0",
"angular-sanitize": "^1.3.0",
"angular-touch": "^1.3.0",
"angular-socket-io": "~0.7.0",
"message-center": "https://github.com/mateu-aguilo-bosch/message-center.git#~1.1.4"
},
"devDependencies": {
"angular-mocks": "^1.3.0"
},
"appPath": "app",
"moduleName": "appApp"
}
当我运行bower install
时,没有任何变化。
该应用程序在我的mac上构建得很好,但出于某种疯狂的原因,它不断删除socketio,无法在我的ubuntu机器上构建。
在bower上搜索socket.io-client
会生成一个名为sio-client
的包,但没有生成名为socket.io-client
的包。
尝试:
"sio-client": "~1.3.4"
在您的bower.json中,它应该会变直。
相关文章:
- 为什么不't Javascript对我的输入值进行了一些重新检查
- 可以't让我的if语句处理js中的html表单输入
- 我的单元测试选项是什么
- 将输入字段中的文本提交到我的数据库,同时将其添加到我的列表中
- 我的职位回报太快了,如何做出承诺
- 我的jQuery插件参数没有正确启动,遇到了问题
- 如何识别我的网站中的慢速设备
- 如何将JSON数据导入我的ejs模板
- JQuery添加元素需要在我的js之前再次添加JQuery脚本
- 知道为什么我的旋转木马不会自动更改图片吗
- 我的模板未被解析
- 为什么wiredep一直在移除我的bower组件
- Gulp找到我的Bower组件并将其插入
- 与 bower 一起安装的 ACE 编辑器找不到我的模式
- 如何让我的ember.js应用程序导入从bower或npm安装的模块
- 可以't使用grunt-bower任务插件运行我的grunt-task
- 如何在已部署的 Heroku 应用程序上安装我的 bower 依赖项
- 我如何在Grunt中管理我的Javascript库?使用Bower或NPM
- 如何使用我的项目bower.json在Bootstrap中限制jQuery依赖关系
- Grunt-bower-install不包含我的CSS文件