So here is the process I followed:
Ready to re-generate the word cloud:
Finally, back in InkScape:
Note: I tried running the d3-cloud from node.js. The only problem there is SVG generation. As suggested in the d3-cloud readme, I used the canvas module to use d3 without a DOM, and the canvas correctly outputs PNG and SVG for vanilla canvas operations. However, d3-cloud crashes when canvas has been configured for SVG rendering instead of the default PNG. Still waiting to hear back from d3-cloud author.