当我根据我的bower.json(通过bower安装)运行一些bower安装时,我的一些组件输出在bower_components / component / component- @ version中。
这只发生在Windows上,在Ubuntu上使用相同的文件,输出在bower_components / component中。
关于如何解决这个问题的任何想法?
我的bower.json文件:
{
"name": "myproject",
"version": "0.0.1",
"main": "js/app.js",
"license": "MIT",
"private": true,
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"tests"
],
"devDependencies": {
"angular-mocks": "1.3.8"
},
"dependencies": {
"moment": "~2.8.3",
"accounting": "~0.3.2",
"lodash": "~2.4.1",
"angular": "1.3.8",
"angular-route": "1.3.8",
"angular-touch": "1.3.8",
"angular-animate": "1.3.8",
"angular-sanitize": "1.3.8",
"angular-cookies": "1.3.8",
"chartist": "~0.6.1",
"angular-chartist.js": "~3.0.0",
"requirejs": "~2.1.11",
"angular-hotkeys": "chieffancypants/angular-hotkeys#1.4.5",
"angular-toaster" : "jirikavi/AngularJS-Toaster#0.4.10",
"ng-csv" : "asafdav/ng-csv#v0.3.1"
},
"resolutions": {
"chartist": "0.6.1",
"angularjs": "1.3.8"
}
}

例如,在Windows上 bower_components / angular-sanitize / bower-angular-sanitize-1.3.8 中的angular-sanitize输出,但直接在 bower_components / angular-sanitize / 在Ubuntu上。
而angular只是在 bower_components / angular ,Windows或Ubuntu上输出代码。
感谢你的帮助:)
编辑:它不仅仅是通过gulp,只是通过凉亭。