Using SparkJS in a mobile application

I am trying to use SparkJS in a Titanium Appcelerator application on OS X for cross platform mobile development. I am having some trouble loading the spark modules.

var spark = require('spark');

The above code gives me errors of the form "Script Error Couldn't find module: for architecture: i386".

I was wondering where I should put the SparkJS modules so the project can find them. Currently, I have copied the files under node_modules/spark/lib directly into the project. Is this a good approach?

In general, I’d appreciate some pointers on how I can use the spark node.js modules from an external project.

Thanks