Open anthonator opened 10 years ago
+1 I am also experiencing this issue. I thought it was supposed to be fixed in 0.3.x
?
hey @anthonator just FYI I have a fix for this:
in your Gruntfile.js underneath targetDir
and verbose
add another property called copy
and set it to false
(it's true by default). This makes the issue go away :smile:
Your Gruntfile.js should look like this:
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-bower-task');
grunt.initConfig({
bower: {
install: {
options: {
targetDir: './vendor/assets/components',
verbose: true,
copy: false
}
}
}
});
}
enjoy :heart:
Anyone here have suggestions for my issue https://github.com/yatskevich/grunt-bower-task/issues/137
thank you Zensavona! that worked!
I have similar problem. It removes my last package for no reason. Manual bower install has no problem with it. The solution suggested Zesenova by adding copy: false works for me.
I'm not exactly sure how to describe this one. I've got a couple packages in my
bower.json
that won't copy over to mytargetDir
. It's not entirely consistent though. It only has trouble copying over one package at a time.For instance, I have the jsx-requirejs-plugin and requirejs-text dependencies defined in my
bower.json
. Whenever I rungrunt bower:install
I get:If I remove
jsx-requirejs-plugin
I then get:If I then remove
requirejs-text
thengrunt bower:install
works.If I just do a straight up
bower install
I don't have any problems. Everything shows up properly in mytargetDir
.If I look in my
targetDir
when the errors occur then the package that's having issues is not there. So ifjsx-requirejs-plugin
is having issues it will not be in thetargetDir
butrequirejs-text
will.bower.json
Gruntfile.js
package.json
.bowerrc
Log Output