I'm using Titanium Studio for some months now developing an application. In the past week I keep getting an Exception when trying to deploy or debug my app from Titanium Studio. The message is as follows:
module.js:340 throw err; ^ Error: Cannot find module 'wrench' at Function.Module._resolveFilename (module.js:338:15) at Function.Module._load (module.js:280:25) at Module.require (module.js:364:17) at require (module.js:380:17) at Object.<anonymous> (c:\Users\antonis\AppData\Roaming\npm\node_modules\titanium\lib\titanium.js:10:11) 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)
However some rare times is works and I dont get the Exception without having to modify anything. As you can imagine this is a very serious problem since my development has halted. I tried reinstalling Titanium but this did not help.
Installation details:
Windows 7 64 bit
Titanium Studio, build: 3.1.3.201309132423 (c) Copyright 2012-2013 by Appcelerator, Inc. All rights reserved. Build: jenkins-titanium-rcp-master-21 (origin/master) Date: 13 September 2013, 00:23:57
Jre7