stf local error
INF/device 28851 [e1f2ffd] Preparing device
FTL/device 28851 [e1f2ffd] Setup had an error Error: Cannot find module '/Users/gaoman/Documents/openstf/stf/node_modules/jpeg-turbo/lib/binding/node-v47-darwin-x64/jpegturbo.node'
at Function.Module._resolveFilename (module.js:326:15)
at Function.Module._load (module.js:277:25)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/Users/gaoman/Documents/openstf/stf/node_modules/jpeg-turbo/index.js:5:18)
at Module._compile (module.js:398:26)
at Object.Module._extensions..js (module.js:405:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/Users/gaoman/Documents/openstf/stf/lib/units/device/plugins/vnc/index.js:8:12)
at Module._compile (module.js:398:26)
at Object.Module._extensions..js (module.js:405:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.require (module.js:354:17)
at require (internal/module.js:12:17)
at /Users/gaoman/Documents/openstf/stf/lib/units/device/index.js:23:21
at SerialSyrup.ParallelSyrup.invoke (/Users/gaoman/Documents/openstf/stf/node_modules/stf-syrup/lib/parallel.js:54:24)
at /Users/gaoman/Documents/openstf/stf/node_modules/stf-syrup/lib/serial.js:43:33
at tryCatch1 (/Users/gaoman/Documents/openstf/stf/node_modules/stf-syrup/node_modules/bluebird/js/main/util.js:63:19)
FTL/util:lifecycle 28851 [e1f2ffd] Shutting down due to fatal error
INF/provider 28798 [*] Cleaning up device worker "e1f2ffd"
In your project dir, input "npm install jpeg-turbo", maybe you need "--registry=https:// ???", try it and generally you are not successful at first time, try it again.
How did you install stf?
On Friday, 18 March 2016, labolado [email protected] wrote:
I got the error two. I've installed jpeg-turbo successfully.
My System is MacOS 10.11.3
INF/device 14593 [64a6515b7803] Preparing device FTL/device 14593 [64a6515b7803] Setup had an error Error: Cannot find module '/usr/local/lib/node_modules/stf/node_modules/jpeg-turbo/lib/binding/node-v47-darwin-x64/jpegturbo.node' at Function.Module._resolveFilename (module.js:339:15)
— You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub https://github.com/openstf/stf/issues/251#issuecomment-198222179
I ran into this earlier. Turns out jpeg-turbo was failing to build due to lack of yasm. I'd suggest using your favorite package manager to install yasm, then re-building openstf.
Super old issue but @dpn's answer is good. Closing.