Skip to content Skip to sidebar Skip to footer

Can't Install Bower Components Using Grunt - "arguments To Path.join Must Be Strings"

I'm having issues installing Bower components using my Gruntfile.js. I can however install the Bower components fine using Bower command. Installing Bower components using Bower co

Solution 1:

Here's how I have my configuration which is working for me:

bower: {
            install: {
                options: {
                    targetDir:bowerDir,
                    install:true,
                    cleanTargetDir:false,
                    cleanBowerDir:false,
                    bowerOptions: {}
                }
            }
        }

Also make sure you have the dependencies in your package.json file:

"devDependencies":{"bower":"^1.3.1","grunt":"^0.4.5","grunt-bower-task":"^0.4.0","grunt-cli":"^0.1.13",

also try running these commands:

npm install grunt-cli --save-dev
npm install grunt-bower-task --save-dev

Post a Comment for "Can't Install Bower Components Using Grunt - "arguments To Path.join Must Be Strings""