1

Updated to Node 0.10.0, now while Grunt server still works, Grunt (build) and Grunt Test return "Arguments to path.join must be strings" error on Running "useminPrepare:html" (useminPrepare) task, effectively failing to build.

Set up: Node: 0.10.0 Yeoman: 1.0.0-beta.3 Grunt: grunt-cli v0.1.6, grunt v0.4.0rc7

I know there's some fix been made, but tried all suggested solutions (npm cache clear, Grunt reinstall, etc.) with no success.

Any help appreciated.

Kurren
  • 81
  • 2
  • 9

1 Answers1

5

This question has been answered before here: Yeoman yo webapp fails with TypeError

To quote myself:

This was an error in Bower and got already fixed. You can manually update your bower installation or wait for the updated generators. This is the commit that fixed the issue.

Community
  • 1
  • 1
passy
  • 7,170
  • 5
  • 36
  • 38
  • Did you `npm install` afterwards? – passy Mar 13 '13 at 14:17
  • Yes, done that. As I said in my original post, done everything by the book (aka read other posts and looked around for this ticket) but without success. I'm building a angularJs app, using Yeoman, and since updating to NodeJS - (supposed) fix or not, it just does not build anymore. – Kurren Mar 13 '13 at 16:28
  • Could you try to upgrade grunt to the latest revision in master? `npm install git://github.com/gruntjs/grunt.git`. I just saw that a similar incompatibility was fixed there two days ago. – passy Mar 13 '13 at 22:28
  • Tried that as well, still broken... will try a reset and clean install (once more) / it's driving me nuts this thing. – Kurren Mar 14 '13 at 07:37
  • 5
    Fixed! I was updating Grunt global but the app was somehow using a local instance, npm grunt install in the app dir solved the issue. thanks. – Kurren Mar 14 '13 at 07:47
  • I'm still getting this error after following all the advice here. Any ideas? – landland Mar 15 '13 at 15:50