sbidolach / mobile-gamepad

Mobile wifi gamepad for RetroPie
http://mobilegamepad.net/
GNU General Public License v3.0
64 stars 9 forks source link

uinput not found #20

Open jensgrunzer1 opened 11 months ago

jensgrunzer1 commented 11 months ago

Whenever i try to execute it(sudo grunt start), it complains about not finding uinput. I installed uninput manually(npm i uinput) but it still doesnt work. logs: ` Running "clean:dist" (clean) task

1 path cleaned.

Running "copy:public" (copy) task Created 1 directory, copied 3 files

Running "copy:client" (copy) task Created 3 directories, copied 10 files

Running "express:dev" (express) task Starting background Express server internal/modules/cjs/loader.js:638 throw err; ^

Error: Cannot find module 'uinput' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object. (/home/pi/mobile-gamepad/server/src/gamepad.js:2:14) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) Stopping Express server

Running "watch" task Waiting... `

AzizBgBoss commented 8 months ago

In the mobile-gamepad directory, do npm install uinput

If it worked, congrats. If not, do ls node_modules | grep uinput if you find a directory named "uinput2", do mv node_modules/uinput2 node_modules/uinput then try again...