New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All usage of Bower fails with "Arguments to path.join must be strings" #270
Comments
Reproduced on Ubuntu 11.10 with node v0.9.11.pre Quick fix is change edit: |
I'm on windows 7 x64, and have installed the latest builds of Node.js, yeoman, bower $ yeoman build
|
You're using an old version of yeoman, which might be the problem. See http://yeoman.io for info on how to upgrade. |
I have the same issue:
I confirm error not here with node v0.10.2. You can solve this issue using nvm (Node Version Manager: https://github.com/creationix/nvm). This is how I did it:
|
I used "grunt build" instead of "yeoman build" and it worked. |
falls to me 👎 $ node -v
v0.10.2
$ bower -v
0.9.2
$ bower install
/usr/local/lib/node_modules/bower/node_modules/tmp/lib/tmp.js:260
throw err;
^
TypeError: Arguments to path.join must be strings
at path.js:360:15
at Array.filter (native)
at Object.exports.join (path.js:358:36)
at Package.generateResourceId (/usr/local/lib/node_modules/bower/lib/core/package.js:857:23)
at null.<anonymous> (/usr/local/lib/node_modules/bower/lib/core/package.js:178:10)
at Request._callback (/usr/local/lib/node_modules/bower/lib/core/source.js:38:9)
at Request.self.callback (/usr/local/lib/node_modules/bower/node_modules/request/main.js:122:22)
at Request.EventEmitter.emit (events.js:98:17)
at Request.<anonymous> (/usr/local/lib/node_modules/bower/node_modules/request/main.js:655:16)
at Request.EventEmitter.emit (events.js:117:20) |
@Timopheym - you'll get this error if you have a dependency in |
I had this when using nvm, what I had to do was reload the node version, even if it was already running that version. It was odd, but it fixed my problem, not sure what caused it to be fixed but this is the only thing I did between it not working and it working so my bet is on refreshing node environment. $ bower -v
path.js:360
throw new TypeError('Arguments to path.join must be strings');
^
TypeError: Arguments to path.join must be strings
at path.js:360:15
at Array.filter (native)
at Object.exports.join (path.js:358:36)
at Object.<anonymous> (/Users/mashape/nvm/v0.8.15/lib/node_modules/bower/lib/core/config.js:35:22)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Module.require (module.js:364:17)
at require (module.js:380:17)
$ nvm use v0.10.15
Now using node v0.10.15
$ bower -v
1.2.7 |
On windows 7, i had to reinstall bower. npm install bower solved the issue for me. |
@iredmedia : that fixed it, thank you |
I've just installed bower 0.7.0 with
npm install .
and the followingpackage.json
:I'm running bower with
./node_modules/.bin/bower
, and the command always fails with the following error message:I've looked into the code in question, and the line causing the error looks like this:
The problem is that
this.cwd
is undefined when that line executes. Does this sound like my system might be misconfigured in some way?For what it's worth, I reproduced the issue with version 0.6.0, and when doing a global installation with
sudo npm install -g bower
.The text was updated successfully, but these errors were encountered: