Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uinput not found #20

Open
jensgrunzer1 opened this issue Dec 8, 2023 · 1 comment
Open

uinput not found #20

jensgrunzer1 opened this issue Dec 8, 2023 · 1 comment

Comments

@jensgrunzer1
Copy link

jensgrunzer1 commented Dec 8, 2023

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
Copy link

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...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants