Quantcast
Channel: Appcelerator Developer Center Q&A Tag Feed (npm)
Viewing all articles
Browse latest Browse all 20

Adding NPM module to Titanium Project

$
0
0

Dear Sirs/Madams,

Could someone kindly explain to me how I can add an npm module in a Titanium project. Right now, I'm interested in the FTP npm project.

I've downloaded it from github. i've added node.js The installation went OK.

But now I need to add the module to my Ti project.

The require command is as follows:

var Client = require('ftp');
I would have thought that there's some .js file I need to add in Ti to get the ball rolling. I checked in the installation directories, and found nothing.

The error message in my app is

"ERROR: COULDN'T FIND MODULE FTP

I really would appreciate some help. I developed my own working Ftp client, it worked, but failed on upload. This is the last chance i have.

Thanks


Viewing all articles
Browse latest Browse all 20

Trending Articles